From 33ffe9aadcef483a4900cc65fc9e840220951e3c Mon Sep 17 00:00:00 2001 From: bertrand Date: Wed, 11 Aug 1999 10:59:17 +0000 Subject: Message creation still consumes a lot of memory (maybe 2000k) and I really don't understand why. As soon as I get gtk working on SunOS, purify should hopefully give me the answer. 1999-08-11 bertrand * camel/camel-service.c (_finalize): * camel/camel-stream-fs.c (_finalize): (_destroy): close file descriptor. * camel/camel-stream-mem.c (_finalize): * camel/camel-store.c (_finalize): * camel/camel-folder.c (_finalize): svn path=/trunk/; revision=1104 --- tests/ui-tests/store_listing.c | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'tests/ui-tests') diff --git a/tests/ui-tests/store_listing.c b/tests/ui-tests/store_listing.c index 34c0e51a28..2f73921ad6 100644 --- a/tests/ui-tests/store_listing.c +++ b/tests/ui-tests/store_listing.c @@ -60,7 +60,7 @@ show_folder_messages (CamelFolder *folder) gint folder_message_count; CamelMimeMessage *message; gint i; - gchar *clist_row_text[3]; + const gchar *clist_row_text[3]; const char *sent_date, *subject, *sender; gint current_row; @@ -77,16 +77,19 @@ show_folder_messages (CamelFolder *folder) sender = camel_mime_message_get_from (message); subject = camel_mime_message_get_subject (message); - if (sent_date) clist_row_text [0] = g_strdup (sent_date); - else clist_row_text [0] = g_strdup ('\0'); - if (sender) clist_row_text [1] = g_strdup (sender); - else clist_row_text [1] = g_strdup ('\0'); - if (subject) clist_row_text [2] = g_strdup (subject); - else clist_row_text [2] = g_strdup ('\0'); + + if (sent_date) clist_row_text [0] = sent_date; + else clist_row_text [0] = NULL; + if (sender) clist_row_text [1] = sender; + else clist_row_text [1] = NULL; + if (subject) clist_row_text [2] = subject; + else clist_row_text [2] = NULL; current_row = gtk_clist_append (GTK_CLIST (message_clist), clist_row_text); gtk_clist_set_row_data_full (GTK_CLIST (message_clist), current_row, (gpointer)message, message_destroy_notify); } + for (i=0; i<10; i++) + gtk_clist_append (GTK_CLIST (message_clist), clist_row_text); -- cgit v1.2.3