From Mark Cottrell: Attempting to view an RTP stream analysis graph causes program...
authoretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 24 Feb 2012 05:42:40 +0000 (05:42 +0000)
committeretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 24 Feb 2012 05:42:40 +0000 (05:42 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@41170 f5534014-38df-0310-8fa8-9805f1628bb7

ui/gtk/rtp_analysis.c

index 927e621..9c4b787 100644 (file)
@@ -1463,9 +1463,9 @@ static gint expose_event(GtkWidget *widget, GdkEventExpose *event, gpointer data
 }
 #endif
 /****************************************************************************/
-static gint configure_event(GtkWidget *widget, GdkEventConfigure *event _U_)
+static gint configure_event(GtkWidget *widget, GdkEventConfigure *event _U_, gpointer data)
 {
-       user_data_t *user_data;
+    user_data_t *user_data = data;
        GtkWidget *bt_save;
        GtkAllocation widget_alloc;
        cairo_t *cr;
@@ -1473,8 +1473,6 @@ static gint configure_event(GtkWidget *widget, GdkEventConfigure *event _U_)
        surface_info_t *surface_info = g_new(surface_info_t, 1);
 #endif
 
-       user_data=(user_data_t *)g_object_get_data(G_OBJECT(widget), "user_data_t");
-
        if(!user_data){
                exit(10);
        }