plug memory leaks
authorPaul Mangan <paul@claws-mail.org>
Mon, 8 Dec 2003 22:50:53 +0000 (22:50 +0000)
committerPaul Mangan <paul@claws-mail.org>
Mon, 8 Dec 2003 22:50:53 +0000 (22:50 +0000)
ChangeLog.claws
configure.ac
src/imap.c
src/inc.c

index b680919..e0dbda0 100644 (file)
@@ -1,3 +1,9 @@
+2003-12-08 [paul]      0.9.7claws32
+
+       * src/imap.c
+         src/inc.c
+               plug memory leaks (patch by Alfons)
+
 2003-12-08 [christoph] 0.9.7claws31
 
        * src/folder_item_prefs.[ch]
index 786ad01..b52a87b 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=9
 MICRO_VERSION=7
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=31
+EXTRA_VERSION=32
 if test $EXTRA_VERSION -eq 0; then
     VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}claws
 else
index 656b503..f94f198 100644 (file)
@@ -1021,6 +1021,7 @@ static gint imap_do_copy_msgs(Folder *folder, FolderItem *dest,
                g_tuples_destroy(tuples);
        }
 
+       g_relation_destroy(uid_mapping);
        imap_seq_set_free(seq_list);
 
        g_free(destdir);
index e50a66d..c577963 100644 (file)
--- a/src/inc.c
+++ b/src/inc.c
@@ -1085,6 +1085,7 @@ static gint inc_spool_account(PrefsAccount *account)
 {
        FolderItem *inbox;
        gchar *mbox, *logname;
+       gint result;
 
        logname = g_get_user_name();
 
@@ -1100,8 +1101,9 @@ static gint inc_spool_account(PrefsAccount *account)
        else 
                mbox = g_strconcat(account->local_mbox,
                                   G_DIR_SEPARATOR_S, logname, NULL);
-
-       return get_spool(inbox, mbox);
+       result = get_spool(inbox, mbox);
+       g_free(mbox);
+       return result;
 }
 
 static gint inc_all_spool(void)