Fix large memory leak with image sources.
authorCarl Hetherington <cth@carlh.net>
Sun, 22 Jun 2014 20:48:01 +0000 (21:48 +0100)
committerCarl Hetherington <cth@carlh.net>
Sun, 22 Jun 2014 20:48:01 +0000 (21:48 +0100)
Reported-by: Ivan Pullman
ChangeLog
src/lib/image_proxy.cc

index de702dacf571603cbf6d457285a0748d3e9da725..cd348ca76db227dfbb238a3bfb75ccc2e18e6221 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2014-06-22  Carl Hetherington  <cth@carlh.net>
+
+       * Fix large memory leak with image sources.
+
 2014-06-21  Carl Hetherington  <cth@carlh.net>
 
        * Move email config into the KDM email page.
index 4e2f8a1354f9d8ccbc8b6f9cf1de5905935758cd..ba572c72733e9c636a37575ca5cc04d6c609891b 100644 (file)
@@ -142,6 +142,8 @@ MagickImageProxy::image () const
                p += _image->stride()[0];
        }
 
+       delete magick_image;
+
        LOG_TIMING ("[%1] MagickImageProxy completes decode and convert of %2 bytes", boost::this_thread::get_id(), _blob.length());
 
        return _image;