Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(837)

Unified Diff: webkit/glue/scoped_clipboard_writer_glue.h

Issue 10078001: Fix leak in ScopedClipboardWriterGlue. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/glue/clipboard_client.h ('k') | webkit/glue/scoped_clipboard_writer_glue.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/scoped_clipboard_writer_glue.h
diff --git a/webkit/glue/scoped_clipboard_writer_glue.h b/webkit/glue/scoped_clipboard_writer_glue.h
index cee166916504d5a28a209a6cbcbad555ffa9d342..f779ca0e1aadf3e80ce33310dc0f0445513bcade 100644
--- a/webkit/glue/scoped_clipboard_writer_glue.h
+++ b/webkit/glue/scoped_clipboard_writer_glue.h
@@ -6,6 +6,7 @@
#define WEBKIT_GLUE_SCOPED_CLIPBOARD_WRITER_GLUE_H_
#include "ui/base/clipboard/scoped_clipboard_writer.h"
+#include "base/memory/scoped_ptr.h"
#include "webkit/glue/clipboard_client.h"
class ScopedClipboardWriterGlue : public ui::ScopedClipboardWriter {
@@ -17,7 +18,7 @@ class ScopedClipboardWriterGlue : public ui::ScopedClipboardWriter {
void WriteBitmapFromPixels(const void* pixels, const gfx::Size& size);
private:
- webkit_glue::ClipboardClient::WriteContext* context_;
+ scoped_ptr<webkit_glue::ClipboardClient::WriteContext> context_;
DISALLOW_COPY_AND_ASSIGN(ScopedClipboardWriterGlue);
};
« no previous file with comments | « webkit/glue/clipboard_client.h ('k') | webkit/glue/scoped_clipboard_writer_glue.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698