diff options
author | bertrand <Bertrand.Guiheneuf@aful.org> | 1999-08-11 18:59:17 +0800 |
---|---|---|
committer | Bertrand Guiheneuf <bertrand@src.gnome.org> | 1999-08-11 18:59:17 +0800 |
commit | 33ffe9aadcef483a4900cc65fc9e840220951e3c (patch) | |
tree | dda45ce6ecb34bc2a2dc6a342dd526f95e072da6 /tests/ui-tests | |
parent | 9d041c9464b7e13cce7368e644781971d9ad5501 (diff) | |
download | gsoc2013-evolution-33ffe9aadcef483a4900cc65fc9e840220951e3c.tar gsoc2013-evolution-33ffe9aadcef483a4900cc65fc9e840220951e3c.tar.gz gsoc2013-evolution-33ffe9aadcef483a4900cc65fc9e840220951e3c.tar.bz2 gsoc2013-evolution-33ffe9aadcef483a4900cc65fc9e840220951e3c.tar.lz gsoc2013-evolution-33ffe9aadcef483a4900cc65fc9e840220951e3c.tar.xz gsoc2013-evolution-33ffe9aadcef483a4900cc65fc9e840220951e3c.tar.zst gsoc2013-evolution-33ffe9aadcef483a4900cc65fc9e840220951e3c.zip |
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 <Bertrand.Guiheneuf@aful.org>
* 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
Diffstat (limited to 'tests/ui-tests')
-rw-r--r-- | tests/ui-tests/store_listing.c | 17 |
1 files changed, 10 insertions, 7 deletions
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); |