| 1509 |
1509 |
| 1510 static void |
1510 static void |
| 1511 pidgin_webview_finalize(GObject *webview) |
1511 pidgin_webview_finalize(GObject *webview) |
| 1512 { |
1512 { |
| 1513 PidginWebViewPriv *priv = PIDGIN_WEBVIEW_GET_PRIVATE(webview); |
1513 PidginWebViewPriv *priv = PIDGIN_WEBVIEW_GET_PRIVATE(webview); |
| 1514 gpointer temp; |
|
| 1515 |
1514 |
| 1516 if (priv->inspector_win != NULL) |
1515 if (priv->inspector_win != NULL) |
| 1517 gtk_widget_destroy(GTK_WIDGET(priv->inspector_win)); |
1516 gtk_widget_destroy(GTK_WIDGET(priv->inspector_win)); |
| 1518 |
1517 |
| 1519 if (priv->loader) |
1518 if (priv->loader) |
| 1520 g_source_remove(priv->loader); |
1519 g_source_remove(priv->loader); |
| 1521 |
1520 |
| 1522 while (!g_queue_is_empty(priv->load_queue)) { |
1521 while (!g_queue_is_empty(priv->load_queue)) { |
| 1523 temp = g_queue_pop_head(priv->load_queue); |
1522 g_queue_pop_head(priv->load_queue); |
| 1524 temp = g_queue_pop_head(priv->load_queue); |
1523 g_free(g_queue_pop_head(priv->load_queue)); |
| 1525 g_free(temp); |
|
| 1526 } |
1524 } |
| 1527 g_queue_free(priv->load_queue); |
1525 g_queue_free(priv->load_queue); |
| 1528 |
1526 |
| 1529 g_hash_table_destroy(priv->smiley_data); |
1527 g_hash_table_destroy(priv->smiley_data); |
| 1530 gtk_smiley_tree_destroy(priv->default_smilies); |
1528 gtk_smiley_tree_destroy(priv->default_smilies); |