pidgin/gtkwebview.c

changeset 35733
60a5d065ca81
parent 35731
7a8d87b4e516
parent 35689
1e257009ac10
child 35784
247f6f06531f
equal deleted inserted replaced
35732:e5707ffa8f29 35733:60a5d065ca81
913 913
914 static void 914 static void
915 pidgin_webview_finalize(GObject *webview) 915 pidgin_webview_finalize(GObject *webview)
916 { 916 {
917 PidginWebViewPriv *priv = PIDGIN_WEBVIEW_GET_PRIVATE(webview); 917 PidginWebViewPriv *priv = PIDGIN_WEBVIEW_GET_PRIVATE(webview);
918 gpointer temp;
919 918
920 if (priv->inspector_win != NULL) 919 if (priv->inspector_win != NULL)
921 gtk_widget_destroy(GTK_WIDGET(priv->inspector_win)); 920 gtk_widget_destroy(GTK_WIDGET(priv->inspector_win));
922 921
923 if (priv->loader) 922 if (priv->loader)
924 g_source_remove(priv->loader); 923 g_source_remove(priv->loader);
925 924
926 while (!g_queue_is_empty(priv->load_queue)) { 925 while (!g_queue_is_empty(priv->load_queue)) {
927 temp = g_queue_pop_head(priv->load_queue); 926 g_queue_pop_head(priv->load_queue);
928 temp = g_queue_pop_head(priv->load_queue); 927 g_free(g_queue_pop_head(priv->load_queue));
929 g_free(temp);
930 } 928 }
931 g_queue_free(priv->load_queue); 929 g_queue_free(priv->load_queue);
932 930
933 G_OBJECT_CLASS(parent_class)->finalize(G_OBJECT(webview)); 931 G_OBJECT_CLASS(parent_class)->finalize(G_OBJECT(webview));
934 } 932 }

mercurial