summaryrefslogtreecommitdiff
path: root/gtk/gtktooltip.c
diff options
context:
space:
mode:
authorWilliam Jon McCann <jmccann@redhat.com>2012-09-12 16:43:32 -0400
committerMatthias Clasen <mclasen@redhat.com>2012-09-16 21:36:18 -0400
commit92ddf14457d0fef9098efb2105a9ee43c77f4e5a (patch)
treeb6f0e1e319ad5db41ed5943f03b8e1027804b9b5 /gtk/gtktooltip.c
parent9bd408a58f09ba12203a94d3dc34dceec4e2d7e2 (diff)
downloadgtk+-92ddf14457d0fef9098efb2105a9ee43c77f4e5a.tar.gz
Don't leak a ref to the tooltip window
https://bugzilla.gnome.org/show_bug.cgi?id=683896
Diffstat (limited to 'gtk/gtktooltip.c')
-rw-r--r--gtk/gtktooltip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtktooltip.c b/gtk/gtktooltip.c
index eaf94b8dd1..b4e0c954b7 100644
--- a/gtk/gtktooltip.c
+++ b/gtk/gtktooltip.c
@@ -206,7 +206,7 @@ gtk_tooltip_init (GtkTooltip *tooltip)
tooltip->last_window = NULL;
- window = g_object_ref (gtk_window_new (GTK_WINDOW_POPUP));
+ window = gtk_window_new (GTK_WINDOW_POPUP);
screen = gtk_widget_get_screen (window);
visual = gdk_screen_get_rgba_visual (screen);