Skip to content

Commit

Permalink
Merge pull request #107 from papandreou/doNotUnrefUnparsableImages
Browse files Browse the repository at this point in the history
Do not call g_object_unref when imageType comes out as UNKNOWN.
  • Loading branch information
lovell committed Oct 23, 2014
2 parents 4a4dd7f + 005c628 commit 3e1be7a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/metadata.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 3e1be7a

Please sign in to comment.