Bug #628658 - imapx expunge memory leak
authorMilan Crha <mcrha@redhat.com>
Tue, 7 Sep 2010 08:14:47 +0000 (10:14 +0200)
committerMilan Crha <mcrha@redhat.com>
Tue, 7 Sep 2010 08:14:47 +0000 (10:14 +0200)
camel/providers/imapx/camel-imapx-server.c

index 753b9f9..a25340a 100644 (file)
@@ -1194,6 +1194,7 @@ imapx_expunge_uid_from_summary(CamelIMAPXServer *imap, gchar *uid, gboolean unso
                camel_folder_changed (imap->select_folder, imap->changes);
 
                g_slist_foreach (imap->expunged, (GFunc) g_free, NULL);
+               g_slist_free (imap->expunged);
                imap->expunged = NULL;
                camel_folder_change_info_clear (imap->changes);
        }
@@ -1871,6 +1872,7 @@ imapx_completion(CamelIMAPXServer *imap, guchar *token, gint len, GError **error
 
                if (imap->expunged) {
                        g_slist_foreach (imap->expunged, (GFunc) g_free, NULL);
+                       g_slist_free (imap->expunged);
                        imap->expunged = NULL;
                }