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

Unified Diff: compositor/mock_compositor.h

Issue 6691037: wm: Fix an uncommon memory leak in the compositor code. (Closed) Base URL: ssh://gitrw.chromium.org:9222/window_manager.git@master
Patch Set: update another arg to be a const ref Created 9 years, 9 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 | « compositor/gles/opengles_visitor.cc ('k') | compositor/mock_compositor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compositor/mock_compositor.h
diff --git a/compositor/mock_compositor.h b/compositor/mock_compositor.h
index 43262fd7be3fdc4264346255ebf4a1ac3044f989..d1f3b8a445b6d73081d98a809e23b2f1962d5685 100644
--- a/compositor/mock_compositor.h
+++ b/compositor/mock_compositor.h
@@ -204,7 +204,7 @@ class MockCompositor : public Compositor {
public:
explicit TexturePixmapActor(XConnection* xconn);
virtual ~TexturePixmapActor();
- const uint8_t* alpha_mask_bytes() const { return alpha_mask_bytes_; }
+ const uint8_t* alpha_mask_bytes() const { return alpha_mask_bytes_.get(); }
XID pixmap() const { return pixmap_; }
int num_texture_updates() const { return num_texture_updates_; }
@@ -222,7 +222,7 @@ class MockCompositor : public Compositor {
XConnection* xconn_; // not owned
// Shape as set by SetAlphaMask(), or NULL if the actor is unshaped.
- uint8_t* alpha_mask_bytes_;
+ scoped_array<uint8_t> alpha_mask_bytes_;
// Redirected window that we're tracking.
XWindow redirected_window_;
« no previous file with comments | « compositor/gles/opengles_visitor.cc ('k') | compositor/mock_compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698