diff options
author | mattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-11 03:20:34 +0000 |
---|---|---|
committer | mattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-11 03:20:34 +0000 |
commit | 84c87fae6c10e586f98dee595e01a11f548d43f6 (patch) | |
tree | 9bd4f2dc5e93e5cd0a896cd5154e5d53e3a4bf69 | |
parent | 9ade381f46175dead00a1cc9ffc3328230e8c982 (diff) | |
download | chromium_src-84c87fae6c10e586f98dee595e01a11f548d43f6.zip chromium_src-84c87fae6c10e586f98dee595e01a11f548d43f6.tar.gz chromium_src-84c87fae6c10e586f98dee595e01a11f548d43f6.tar.bz2 |
Gtk: Fix leaking style objects when using gtk theme.
TEST=run a ui test under valgrind
BUG=none
Review URL: http://codereview.chromium.org/4794001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65768 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/gtk/gtk_util.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/browser/gtk/gtk_util.cc b/chrome/browser/gtk/gtk_util.cc index bb508b7..3323207 100644 --- a/chrome/browser/gtk/gtk_util.cc +++ b/chrome/browser/gtk/gtk_util.cc @@ -776,6 +776,7 @@ void DrawTextEntryBackground(GtkWidget* offscreen_entry, rec->width - 2 * xborder, rec->height - 2 * yborder); + gtk_style_detach(our_style); g_object_unref(our_style); } |