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

Issue 10854153: Fix memory leak on Chromium OS Heapcheck and Chromium OS (valgrind) (Closed)

Created:
8 years, 4 months ago by bshe
Modified:
8 years, 4 months ago
Reviewers:
sky
CC:
chromium-reviews, sadrul, ben+watch_chromium.org, (unused - use chromium)
Visibility:
Public.

Description

Fix memory leak on Chromium OS Heapcheck and Chromium OS (valgrind) Memcheck:Leak fun:_Znw* fun:_ZN3ash27DesktopBackgroundController16InstallComponentEPN4aura10RootWindowE fun:_ZN3ash27DesktopBackgroundController29InstallComponentForAllWindowsEv fun:_ZN3ash27DesktopBackgroundController29SetDesktopBackgroundImageModeEv fun:_ZN3ash27DesktopBackgroundController20CreateEmptyWallpaperEv fun:_ZN3ash12_GLOBAL__N_126DummyUserWallpaperDelegate19InitializeWallpaperEv fun:_ZN3ash5Shell4InitEv fun:_ZN3ash5Shell14CreateInstanceEPNS_13ShellDelegateE fun:_ZN3ash4test11AshTestBase5SetUpEv http://build.chromium.org/p/chromium.memory.fyi/builders/Chromium%20OS%20%28valgrind%29%284%29/builds/12953 BUG=141563, 141676, 142042 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=151746

Patch Set 1 #

Total comments: 2

Patch Set 2 : Use scoped ptr to manage ownership #

Total comments: 2

Patch Set 3 : Nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -14 lines) Patch
M ash/desktop_background/desktop_background_controller.cc View 1 2 chunks +11 lines, -5 lines 0 comments Download
M ash/desktop_background/desktop_background_view.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ash/desktop_background/desktop_background_widget_controller.h View 1 1 chunk +5 lines, -2 lines 0 comments Download
M ash/desktop_background/desktop_background_widget_controller.cc View 1 1 chunk +9 lines, -1 line 0 comments Download
M ash/wm/root_window_layout_manager.cc View 1 1 chunk +6 lines, -5 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
bshe
Hi Scott. My CL http://codereview.chromium.org/10834308/ caused memory leaks on some tests. Looks like the memory ...
8 years, 4 months ago (2012-08-15 00:43:40 UTC) #1
sky
https://chromiumcodereview.appspot.com/10854153/diff/1/ash/desktop_background/desktop_background_controller.cc File ash/desktop_background/desktop_background_controller.cc (right): https://chromiumcodereview.appspot.com/10854153/diff/1/ash/desktop_background/desktop_background_controller.cc#newcode242 ash/desktop_background/desktop_background_controller.cc:242: if (window->GetProperty(internal::kComponentWrapper) && Why the double check here? Shouldn't ...
8 years, 4 months ago (2012-08-15 15:05:10 UTC) #2
bshe
https://chromiumcodereview.appspot.com/10854153/diff/1/ash/desktop_background/desktop_background_controller.cc File ash/desktop_background/desktop_background_controller.cc (right): https://chromiumcodereview.appspot.com/10854153/diff/1/ash/desktop_background/desktop_background_controller.cc#newcode242 ash/desktop_background/desktop_background_controller.cc:242: if (window->GetProperty(internal::kComponentWrapper) && Some of the tests destroying window ...
8 years, 4 months ago (2012-08-15 15:12:42 UTC) #3
bshe
On 2012/08/15 15:12:42, bshe wrote: > https://chromiumcodereview.appspot.com/10854153/diff/1/ash/desktop_background/desktop_background_controller.cc > File ash/desktop_background/desktop_background_controller.cc (right): > > https://chromiumcodereview.appspot.com/10854153/diff/1/ash/desktop_background/desktop_background_controller.cc#newcode242 > ...
8 years, 4 months ago (2012-08-15 17:51:11 UTC) #4
sky
LGTM https://chromiumcodereview.appspot.com/10854153/diff/11002/ash/desktop_background/desktop_background_view.cc File ash/desktop_background/desktop_background_view.cc (right): https://chromiumcodereview.appspot.com/10854153/diff/11002/ash/desktop_background/desktop_background_view.cc#newcode55 ash/desktop_background/desktop_background_view.cc:55: LOG(ERROR) << "===taken ownership==="; remove this.
8 years, 4 months ago (2012-08-15 20:45:41 UTC) #5
bshe
8 years, 4 months ago (2012-08-15 20:49:39 UTC) #6
Thanks

https://chromiumcodereview.appspot.com/10854153/diff/11002/ash/desktop_backgr...
File ash/desktop_background/desktop_background_view.cc (right):

https://chromiumcodereview.appspot.com/10854153/diff/11002/ash/desktop_backgr...
ash/desktop_background/desktop_background_view.cc:55: LOG(ERROR) << "===taken
ownership===";
On 2012/08/15 20:45:42, sky wrote:
> remove this.

Aha. Sorry, I missed it.

Powered by Google App Engine
This is Rietveld 408576698