From 022c7ab1f28ac677a60cbffa54be28e3272f1c2d Mon Sep 17 00:00:00 2001 From: 5 Date: Fri, 5 May 2000 07:28:20 +0000 Subject: Plug a memory leak. (header_decode_text): Fixed memory leaks with 2000-05-05 * camel-mime-utils.c (header_decode_mailbox): Plug a memory leak. (header_decode_text): Fixed memory leaks with g_string_append(). (header_encode_string): And here too, and a few other places. The glib api is so awful ... (header_content_type_decode): More memory leaks, more left ... 2000-05-05 * camel-mime-parser.c (folder_scan_init_with_fd): Make sure we init the end of buffer sentinal! (folder_scan_init_with_stream): And here too ... svn path=/trunk/; revision=2810 --- camel/camel-folder-summary.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'camel/camel-folder-summary.c') diff --git a/camel/camel-folder-summary.c b/camel/camel-folder-summary.c index bb3857ee39..6d8946ce12 100644 --- a/camel/camel-folder-summary.c +++ b/camel/camel-folder-summary.c @@ -35,6 +35,10 @@ #define d(x) +#if 1 +extern int strdup_count, malloc_count, free_count; +#endif + #define CAMEL_FOLDER_SUMMARY_VERSION (3) struct _CamelFolderSummaryPrivate { @@ -1049,7 +1053,6 @@ int main(int argc, char **argv) CamelFolderSummary *s; char *buffer; int len; - extern int strdup_count, malloc_count, free_count; gtk_init(&argc, &argv); @@ -1095,10 +1098,11 @@ int main(int argc, char **argv) } } printf("summarised %d messages\n", camel_folder_summary_count(s)); - +#if 0 printf("g_strdup count = %d\n", strdup_count); printf("g_malloc count = %d\n", malloc_count); printf("g_free count = %d\n", free_count); +#endif return 0; } -- cgit v1.2.3