summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autocomplete
diff options
context:
space:
mode:
authordeanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-17 14:09:25 +0000
committerdeanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-17 14:09:25 +0000
commit3f3ae3384634db4fb0601f184b12b585b4a64971 (patch)
treea8c9433e62c36d07fabb74857da616c758689161 /chrome/browser/autocomplete
parent72d06320fb001859b84e22063b05527630dc3e1d (diff)
downloadchromium_src-3f3ae3384634db4fb0601f184b12b585b4a64971.zip
chromium_src-3f3ae3384634db4fb0601f184b12b585b4a64971.tar.gz
chromium_src-3f3ae3384634db4fb0601f184b12b585b4a64971.tar.bz2
Don't leak AutocompleteEditViewGtk objects. I meant reset() not release().
Review URL: http://codereview.chromium.org/48066 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11859 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autocomplete')
-rw-r--r--chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc b/chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc
index 4a3a486..abd7a99 100644
--- a/chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc
+++ b/chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc
@@ -56,8 +56,8 @@ AutocompleteEditViewGtk::~AutocompleteEditViewGtk() {
// Explicitly teardown members which have a reference to us. Just to be safe
// we want them to be destroyed before destroying any other internal state.
- popup_view_.release();
- model_.release();
+ popup_view_.reset();
+ model_.reset();
// We own our widget and TextView related objects.
if (text_view_.get()) { // Init() has been called.