aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe Shaw <joe@ximian.com>2001-06-26 07:06:14 +0800
committerJoe Shaw <joeshaw@src.gnome.org>2001-06-26 07:06:14 +0800
commit34d8df373ab0087f5ce202daccb06dcf0d2f9ff0 (patch)
tree5315034a5ead65e46744e14d42cb30828360dead
parent9a1c55ede5e6aad25d0053b097dab47a66b479d1 (diff)
downloadgsoc2013-evolution-34d8df373ab0087f5ce202daccb06dcf0d2f9ff0.tar
gsoc2013-evolution-34d8df373ab0087f5ce202daccb06dcf0d2f9ff0.tar.gz
gsoc2013-evolution-34d8df373ab0087f5ce202daccb06dcf0d2f9ff0.tar.bz2
gsoc2013-evolution-34d8df373ab0087f5ce202daccb06dcf0d2f9ff0.tar.lz
gsoc2013-evolution-34d8df373ab0087f5ce202daccb06dcf0d2f9ff0.tar.xz
gsoc2013-evolution-34d8df373ab0087f5ce202daccb06dcf0d2f9ff0.tar.zst
gsoc2013-evolution-34d8df373ab0087f5ce202daccb06dcf0d2f9ff0.zip
Check to make sure that clipboard_selection is non-NULL before we
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. svn path=/trunk/; revision=10495
-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