aboutsummaryrefslogtreecommitdiffstats
path: root/filter/filter-driver.c
diff options
context:
space:
mode:
authorNotZed <NotZed@HelixCode.com>2000-03-28 05:27:30 +0800
committerMichael Zucci <zucchi@src.gnome.org>2000-03-28 05:27:30 +0800
commitf4f97585105ad09ea539905f6b430e55d5a7cfbb (patch)
tree8225dc7afd4cca2c832641aa5294fd7afc541876 /filter/filter-driver.c
parent3666952c239c9b025c46e8f25c62926faebb2197 (diff)
downloadgsoc2013-evolution-f4f97585105ad09ea539905f6b430e55d5a7cfbb.tar.gz
gsoc2013-evolution-f4f97585105ad09ea539905f6b430e55d5a7cfbb.tar.zst
gsoc2013-evolution-f4f97585105ad09ea539905f6b430e55d5a7cfbb.zip
Plug some minor memleaks.
2000-03-27 NotZed <NotZed@HelixCode.com> * filter-xml.c (tokenise_xmlfreeprop): Free a prop after tokenising it. (find_node_attr): Free the prop after using it. (load_desc): Ditto. I use free() because xmlFree() is nowhere to be found. (filter_load_optionset): Ditto. * filter-arg-types.c (arg_address_values_add_xml): free() xml stuff, plugs a leak. (arg_folder_values_add_xml): Ditto. svn path=/trunk/; revision=2193
Diffstat (limited to 'filter/filter-driver.c')
-rw-r--r--filter/filter-driver.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/filter/filter-driver.c b/filter/filter-driver.c
index 885bf7ddd4..98dbcfd9e4 100644
--- a/filter/filter-driver.c
+++ b/filter/filter-driver.c
@@ -299,8 +299,20 @@ start(void)
x->ex = camel_exception_new ();
camel_provider_register_as_module ("../camel/providers/mbox/.libs/libcamelmbox.so.0");
x->session = camel_session_new (auth_callback);
+ printf("session = %p\n", x->session);
x->store = camel_session_get_store (x->session, store_url, x->ex);
+ printf("store = %p\n", x->store);
+ if (camel_exception_get_id (x->ex)) {
+ printf ("Exception caught in camel_store_get_folder\n"
+ "Full description : %s\n", camel_exception_get_description (x->ex));
+ return NULL;
+ }
x->folder = camel_store_get_folder (x->store, "Inbox", x->ex);
+ if (camel_exception_get_id (x->ex)) {
+ printf ("Exception caught in camel_store_get_folder\n"
+ "Full description : %s\n", camel_exception_get_description (x->ex));
+ return NULL;
+ }
camel_folder_open (x->folder, FOLDER_OPEN_READ, x->ex);
x->terminated = g_hash_table_new(g_str_hash, g_str_equal);
x->processed = g_hash_table_new(g_str_hash, g_str_equal);