Merge pull request #107 from papandreou/doNotUnrefUnparsableImages

Do not call g_object_unref when imageType comes out as UNKNOWN.
This commit is contained in:
Lovell Fuller 2014-10-23 09:23:37 +01:00
commit 3e1be7a33a

View File

@ -76,7 +76,9 @@ class MetadataWorker : public NanAsyncWorker {
}
}
// Clean up
g_object_unref(image);
if (imageType != UNKNOWN) {
g_object_unref(image);
}
vips_error_clear();
vips_thread_shutdown();
}