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
This commit is contained in:
Joe Shaw
2001-06-25 23:06:14 +00:00
committed by Joe Shaw
parent 9a1c55ede5
commit 34d8df373a
2 changed files with 9 additions and 2 deletions

View File

@ -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

View File

@ -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