[PATCH] Handle NULL state in metafile_read_state_free
- From: Christian Neumair <cneumair gnome org>
- To: nautilus-list <nautilus-list gnome org>
- Subject: [PATCH] Handle NULL state in metafile_read_state_free
- Date: Mon, 25 Feb 2008 17:43:30 +0100
Before GIO, the code to free the metafile read state handled NULL
states, but now with GIO, it doesn't.
Proposed patch attached - it should fix bug 512042:
http://bugzilla.gnome.org/show_bug.cgi?id=512042
best regards,
Christian Neumair
--
Christian Neumair <cneumair gnome org>
Index: libnautilus-private/nautilus-metafile.c
===================================================================
--- libnautilus-private/nautilus-metafile.c (Revision 13805)
+++ libnautilus-private/nautilus-metafile.c (Arbeitskopie)
@@ -1723,6 +1723,10 @@ metafile_read_cancel (NautilusMetafile *
static void
metafile_read_state_free (MetafileReadState *state)
{
+ if (state == NULL) {
+ return;
+ }
+
g_object_unref (state->cancellable);
g_free (state);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]