aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/folder-browser.c6
2 files changed, 9 insertions, 2 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 485db80a67..c96533d9db 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,8 @@
+2001-06-25 Joe Shaw <joe@ximian.com>
+
+ * folder-browser.c (invisible_destroyed): Check to make sure that
+ clipboard_selection is non-NULL before we g_byte_array_free() it.
+
2001-06-25 jacob berkman <jacob@ximian.com>
* mail-send-recv.c (free_send_data): sync folders after we've
diff --git a/mail/folder-browser.c b/mail/folder-browser.c
index e58b97e77c..e5db32c649 100644
--- a/mail/folder-browser.c
+++ b/mail/folder-browser.c
@@ -92,8 +92,10 @@ static guint folder_browser_signals [LAST_SIGNAL] = {0, };
static void
invisible_destroyed (GtkObject *invisible)
{
- g_byte_array_free (clipboard_selection, TRUE);
- clipboard_selection = NULL;
+ if (clipboard_selection) {
+ g_byte_array_free (clipboard_selection, TRUE);
+ clipboard_selection = NULL;
+ }
}
static void