Bug#507097: Segmentation fault in GtkTrayIcon

Jonny Lamb jonny at debian.org
Fri Nov 28 08:29:27 UTC 2008


On Fri, Nov 28, 08:53:57 +0100, Emilio Pozuelo Monfort wrote:
> I think you forgot to attach it :-)

Classic! Here is the patch.

Thanks,

-- 
Jonny Lamb, UK
jonny at debian.org
-------------- next part --------------
diff -Nruad -Nraud gtk+2.0-2.12.11.orig/gtk/gtktrayicon-x11.c gtk+2.0-2.12.11/gtk/gtktrayicon-x11.c
--- gtk+2.0-2.12.11.orig/gtk/gtktrayicon-x11.c	2008-11-27 23:50:01.000000000 +0000
+++ gtk+2.0-2.12.11/gtk/gtktrayicon-x11.c	2008-11-27 23:50:57.000000000 +0000
@@ -224,6 +224,10 @@
   GtkTrayIcon *icon = user_data;
   XEvent *xev = (XEvent *)xevent;
 
+  /* The tray icon could already have been finalized. */
+  if (icon->priv == NULL)
+    return GDK_FILTER_REMOVE;
+
   if (xev->xany.type == ClientMessage &&
       xev->xclient.message_type == icon->priv->manager_atom &&
       xev->xclient.data.l[1] == icon->priv->selection_atom)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-gnome-maintainers/attachments/20081128/7902672a/attachment.pgp 


More information about the pkg-gnome-maintainers mailing list