[gtk+] Don't leak a ref to the tooltip window
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Don't leak a ref to the tooltip window
- Date: Mon, 17 Sep 2012 02:53:54 +0000 (UTC)
commit 92ddf14457d0fef9098efb2105a9ee43c77f4e5a
Author: William Jon McCann <jmccann redhat com>
Date: Wed Sep 12 16:43:32 2012 -0400
Don't leak a ref to the tooltip window
https://bugzilla.gnome.org/show_bug.cgi?id=683896
gtk/gtktooltip.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtktooltip.c b/gtk/gtktooltip.c
index eaf94b8..b4e0c95 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]