[gtk+] gtkplug: Do not leak in gtk_plug_realize()



commit 29fc179a89b9e9ab1fbb48b8d5d0873655322645
Author: Javier Jardón <jjardon gnome org>
Date:   Thu Nov 18 17:47:04 2010 +0100

    gtkplug: Do not leak in gtk_plug_realize()
    
    Indeed, we should check for window->wmclass_name
    
    Reported by Guillaume Desmottes in bug
    https://bugzilla.gnome.org/show_bug.cgi?id=635175

 gtk/gtkplug.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkplug.c b/gtk/gtkplug.c
index f8a19ff..d3aacab 100644
--- a/gtk/gtkplug.c
+++ b/gtk/gtkplug.c
@@ -663,7 +663,7 @@ gtk_plug_realize (GtkWidget *widget)
 
   attributes_mask = GDK_WA_VISUAL;
   attributes_mask |= (title ? GDK_WA_TITLE : 0);
-  attributes_mask |= (g_strdup (g_get_prgname ()) ? GDK_WA_WMCLASS : 0);
+  attributes_mask |= (wmclass_name ? GDK_WA_WMCLASS : 0);
 
   if (gtk_widget_is_toplevel (widget))
     {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]