aboutsummaryrefslogtreecommitdiffstats
path: root/mail/folder-browser.c
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 /mail/folder-browser.c
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
Diffstat (limited to 'mail/folder-browser.c')
-rw-r--r--mail/folder-browser.c6
1 files changed, 4 insertions, 2 deletions
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