Don't call gtk_widget_unregister_window() in bytes_view_unrealize() after GTK+ 3.8.0
authorBalint Reczey <balint@balintreczey.hu>
Fri, 31 May 2013 20:57:07 +0000 (20:57 -0000)
committerBalint Reczey <balint@balintreczey.hu>
Fri, 31 May 2013 20:57:07 +0000 (20:57 -0000)
to prevent double invocation causing crash.

This fixes https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8604 .
The patch is from Jakub Zawadzki.

svn path=/trunk/; revision=49655

ui/gtk/bytes_view.c

index 54f65d159f4828b216444945c05678d29d3c2975..55b9c0ca85cda0ea36d298ef9bd89ee4e66be245 100644 (file)
@@ -257,9 +257,7 @@ bytes_view_unrealize(GtkWidget *widget)
                bv->context = NULL;
        }
        /* if there are still events in the queue, this'll avoid segfault */
-#if GTK_CHECK_VERSION(3, 8, 0)
-       gtk_widget_unregister_window(widget, gtk_widget_get_window(widget));
-#else
+#if !GTK_CHECK_VERSION(3, 8, 0)
        gdk_window_set_user_data(gtk_widget_get_window(widget), NULL);
 #endif