Don't leak a ref to the tooltip window

https://bugzilla.gnome.org/show_bug.cgi?id=683896
This commit is contained in:
William Jon McCann 2012-09-12 16:43:32 -04:00 committed by Matthias Clasen
parent 9bd408a58f
commit 92ddf14457

View File

@ -206,7 +206,7 @@ gtk_tooltip_init (GtkTooltip *tooltip)
tooltip->last_window = NULL; 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); screen = gtk_widget_get_screen (window);
visual = gdk_screen_get_rgba_visual (screen); visual = gdk_screen_get_rgba_visual (screen);