From 4d6ccba521e9413d1190cd946561be1991390dc3 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Wed, 4 Feb 2004 05:34:28 +0000 Subject: ** See bug #53131. 2004-02-04 Not Zed ** See bug #53131. * em-folder-browser.c (em_folder_browser_show_preview): copy the message list's cursor_uid before calling set_message, since it can get freed during setting the message. svn path=/trunk/; revision=24601 --- mail/em-folder-browser.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'mail') diff --git a/mail/em-folder-browser.c b/mail/em-folder-browser.c index dd89dc0226..c1bd40346b 100644 --- a/mail/em-folder-browser.c +++ b/mail/em-folder-browser.c @@ -300,8 +300,12 @@ void em_folder_browser_show_preview(EMFolderBrowser *emfb, gboolean state) gtk_paned_set_position (GTK_PANED (emfb->vpane), paned_size); gtk_widget_show (GTK_WIDGET (emfb->priv->preview)); - if (emfb->view.list->cursor_uid) - em_folder_view_set_message(&emfb->view, emfb->view.list->cursor_uid); + if (emfb->view.list->cursor_uid) { + char *uid = g_alloca(strlen(emfb->view.list->cursor_uid)+1); + + strcpy(uid, emfb->view.list->cursor_uid); + em_folder_view_set_message(&emfb->view, uid); + } /* need to load/show the current message? */ /*do_message_selected (emfb);*/ -- cgit v1.2.3