mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 18:40:16 +02:00
Merge pull request #107 from papandreou/doNotUnrefUnparsableImages
Do not call g_object_unref when imageType comes out as UNKNOWN.
This commit is contained in:
commit
3e1be7a33a
@ -76,7 +76,9 @@ class MetadataWorker : public NanAsyncWorker {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Clean up
|
// Clean up
|
||||||
g_object_unref(image);
|
if (imageType != UNKNOWN) {
|
||||||
|
g_object_unref(image);
|
||||||
|
}
|
||||||
vips_error_clear();
|
vips_error_clear();
|
||||||
vips_thread_shutdown();
|
vips_thread_shutdown();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user