summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@redhat.com>2015-01-26 14:22:18 +0100
committerTomas Bzatek <tbzatek@redhat.com>2015-01-26 14:22:18 +0100
commit7271fb0b5e24ac014366c7c029822ef4cb2e03eb (patch)
tree149560515648a813e719d7045ad1b8f0572e1847
parentdd374c7ad3117b6e862b5491d7e580b1ae6a57dd (diff)
downloadcataract-7271fb0b5e24ac014366c7c029822ef4cb2e03eb.tar.xz
block-parser: Don't call the destroy func on NULL user_data pointer
-rw-r--r--src/block-parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/block-parser.c b/src/block-parser.c
index eb505ed..48c7671 100644
--- a/src/block-parser.c
+++ b/src/block-parser.c
@@ -79,7 +79,7 @@ block_parser_func_data_destroy_notify (gpointer data)
if (data == NULL)
return;
- if (d->data_destroy_func != NULL)
+ if (d->data_destroy_func != NULL && d->user_data != NULL)
d->data_destroy_func (d->user_data);
g_free (d);
}