diff options
author | Mark Wielaard <mark@klomp.org> | 2013-06-06 09:36:09 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-06-06 09:21:36 +0100 |
commit | 9bf4fb7094567ae64107faced69c25000a101cde (patch) | |
tree | fbbfca2454553745cc419aad9150db27defc02de /vcl/source | |
parent | a4f5152c8a0438c38cfbcb5738a128497da59a17 (diff) |
Fix memory leak in Exif::processExif. Delete aExifData when done.
Change-Id: I1e63727fb8d587401c72775a14e7e3572b04fff5
Reviewed-on: https://gerrit.libreoffice.org/4171
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
(cherry picked from commit 9645818f6817652568fe14c83c2dc46a9e5c3489)
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/filter/jpeg/Exif.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/source/filter/jpeg/Exif.cxx b/vcl/source/filter/jpeg/Exif.cxx index 167cf54b71fc..f44b54f420f5 100644 --- a/vcl/source/filter/jpeg/Exif.cxx +++ b/vcl/source/filter/jpeg/Exif.cxx @@ -213,6 +213,7 @@ bool Exif::processExif(SvStream& rStream, sal_uInt16 aSectionLength, bool bSetVa if( 0x4949 != aTiffHeader->byteOrder || 0x002A != aTiffHeader->tagAlign ) { + delete[] aExifData; return false; } @@ -231,6 +232,7 @@ bool Exif::processExif(SvStream& rStream, sal_uInt16 aSectionLength, bool bSetVa rStream.Write(aExifData, aLength); } + delete[] aExifData; return true; } |