diff options
| author | Tomas Bzatek <tbzatek@redhat.com> | 2015-01-26 14:22:18 +0100 |
|---|---|---|
| committer | Tomas Bzatek <tbzatek@redhat.com> | 2015-01-26 14:22:18 +0100 |
| commit | 7271fb0b5e24ac014366c7c029822ef4cb2e03eb (patch) | |
| tree | 149560515648a813e719d7045ad1b8f0572e1847 /src/block-parser.c | |
| parent | dd374c7ad3117b6e862b5491d7e580b1ae6a57dd (diff) | |
| download | cataract-7271fb0b5e24ac014366c7c029822ef4cb2e03eb.tar.xz | |
block-parser: Don't call the destroy func on NULL user_data pointer
Diffstat (limited to 'src/block-parser.c')
| -rw-r--r-- | src/block-parser.c | 2 |
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); } |
