summaryrefslogtreecommitdiff
path: root/src/jpeg-utils.c
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2019-05-13 22:52:23 +0200
committerTomas Bzatek <tbzatek@users.sourceforge.net>2019-05-13 23:26:02 +0200
commitfe6fd3cec07429982946dddbc168d8c195c9b4b8 (patch)
tree280897bbad0e7d9dbd8ccc779839c4fd01b30cf1 /src/jpeg-utils.c
parent0c3b218886342e44275b087c41faf3b6a2b7f664 (diff)
downloadcataract-fe6fd3cec07429982946dddbc168d8c195c9b4b8.tar.xz
Plug some memory leaks
Diffstat (limited to 'src/jpeg-utils.c')
-rw-r--r--src/jpeg-utils.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/jpeg-utils.c b/src/jpeg-utils.c
index 64cfdff..f9a7dfa 100644
--- a/src/jpeg-utils.c
+++ b/src/jpeg-utils.c
@@ -678,7 +678,8 @@ get_image_sizes (const gchar *img,
/* -- make it silent
log_error ("Error reading image info: %s %s %ld %s\n", GetMagickModule(), description);
*/
- MagickRelinquishMemory(description);
+ MagickRelinquishMemory (description);
+ DestroyMagickWand (magick_wand);
return;
}
@@ -690,7 +691,7 @@ get_image_sizes (const gchar *img,
if (quality)
*quality = (int) MagickGetImageCompressionQuality (magick_wand);
- magick_wand = DestroyMagickWand (magick_wand);
+ DestroyMagickWand (magick_wand);
}