GNOME #641325

Index: gnome-panel-2.91.93/gnome-panel/xstuff.c
===================================================================
--- gnome-panel-2.91.93.orig/gnome-panel/xstuff.c	2011-04-02 18:56:27.821302001 +0200
+++ gnome-panel-2.91.93/gnome-panel/xstuff.c	2011-04-02 19:01:24.937297950 +0200
@@ -305,6 +305,13 @@ zoom_timeout (GtkWidget *window)
 }
 
 static gboolean
+idle_destroy (GtkWidget *window)
+{
+	gtk_widget_destroy (window);
+	return FALSE;
+}
+
+static gboolean
 zoom_draw (GtkWidget *widget,
 	   cairo_t   *cr,
            gpointer    user_data)
@@ -323,7 +330,7 @@ zoom_draw (GtkWidget *widget,
 
 		g_slice_free (CompositedZoomData, zoom);
 
-		gtk_widget_destroy (widget);
+		g_idle_add (idle_destroy, widget);
 	} else {
 		GdkPixbuf *scaled;
 		int width, height;
