Commit 202e63fc authored by Daniel P. Berrange's avatar Daniel P. Berrange

Fix memory leak in pixbuf loader

Previous commit fad10008
fixed a double unref in one scenario, but introduced a
memory leak in another scenario. The unref must be moved
inside the 'if (dest == src)' block to fix both problems.
Signed-off-by: default avatarDaniel P. Berrange <dan@berrange.com>
parent d29e9765
......@@ -36,6 +36,9 @@ GdkPixbuf *entangle_pixbuf_auto_rotate(GdkPixbuf *src,
if (dest == src) {
int transform = 0;
g_object_unref(dest);
if (metadata) {
transform = gexiv2_metadata_get_orientation(metadata);
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment