Bug #628657 - imapx sync_folders memory leak
authorMilan Crha <mcrha@redhat.com>
Tue, 7 Sep 2010 07:54:57 +0000 (09:54 +0200)
committerMilan Crha <mcrha@redhat.com>
Tue, 7 Sep 2010 07:55:54 +0000 (09:55 +0200)
camel/providers/imapx/camel-imapx-store-summary.c
camel/providers/imapx/camel-imapx-store.c

index 1b75be7..69def14 100644 (file)
@@ -279,6 +279,8 @@ camel_imapx_store_summary_add_from_full(CamelIMAPXStoreSummary *s, const gchar *
                d(printf("  failed\n"));
        }
 
+       g_free (pathu8);
+
        return info;
 }
 
index ebdbb23..fa8e27f 100644 (file)
@@ -136,6 +136,9 @@ imapx_store_finalize (GObject *object)
 
        g_free (imapx_store->base_url);
 
+       if (imapx_store->summary)
+               g_object_unref (imapx_store->summary);
+
        /* Chain up to parent's finalize() method. */
        G_OBJECT_CLASS (camel_imapx_store_parent_class)->finalize (object);
 }
@@ -168,6 +171,8 @@ imapx_construct(CamelService *service, CamelSession *session, CamelProvider *pro
        camel_store_summary_set_uri_base((CamelStoreSummary *)store->summary, service->url);
        camel_store_summary_load((CamelStoreSummary *)store->summary);
 
+       g_free (summary);
+
        return TRUE;
 }