summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-31 01:04:04 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-31 01:04:04 +0000
commit0608f846766a84a3f082622e3e0b7158aaa9abc7 (patch)
tree9e2d11857a7e3d66f2b3205ba6f1066eb322db2b
parentdbd34f573f6064dd24f813b4985d7d32b4f1c328 (diff)
downloadchromium_src-0608f846766a84a3f082622e3e0b7158aaa9abc7.zip
chromium_src-0608f846766a84a3f082622e3e0b7158aaa9abc7.tar.gz
chromium_src-0608f846766a84a3f082622e3e0b7158aaa9abc7.tar.bz2
Fixes leak in image_loading_tracker_unittest.
TBR=aa@chromium.org BUG=none TEST=none Review URL: http://codereview.chromium.org/1512006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43159 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/extensions/image_loading_tracker_unittest.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/extensions/image_loading_tracker_unittest.cc b/chrome/browser/extensions/image_loading_tracker_unittest.cc
index dde786e..65b47e8 100644
--- a/chrome/browser/extensions/image_loading_tracker_unittest.cc
+++ b/chrome/browser/extensions/image_loading_tracker_unittest.cc
@@ -160,9 +160,9 @@ TEST_F(ImageLoadingTrackerTest, DeleteExtensionWhileWaitingForCache) {
NotificationService::AllSources(),
Details<Extension>(extension.get()));
- // Chuck the image, that way if anyone tries to access it we should crash or
- // get valgrind errors.
- extension.release();
+ // Chuck the extension, that way if anyone tries to access it we should crash
+ // or get valgrind errors.
+ extension.reset();
WaitForImageLoad();