diff options
author | Javier Jardón <jjardon@gnome.org> | 2010-11-18 17:47:04 +0100 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2010-11-18 17:52:18 +0100 |
commit | 29fc179a89b9e9ab1fbb48b8d5d0873655322645 (patch) | |
tree | 823141e1ba1b50187d9951f14aa5c8854ad782fa /gtk/gtkplug.c | |
parent | c03a3ca6012d8797507f83ce317b74144e5bc464 (diff) | |
download | gtk+-29fc179a89b9e9ab1fbb48b8d5d0873655322645.tar.gz |
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
Diffstat (limited to 'gtk/gtkplug.c')
-rw-r--r-- | gtk/gtkplug.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkplug.c b/gtk/gtkplug.c index f8a19ffe3a..d3aacabcec 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)) { |