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 08:19:11 +0000 |
commit | 9645818f6817652568fe14c83c2dc46a9e5c3489 (patch) | |
tree | e44fd93aef6f5907712f3a007a5f1b84093651ae /vcl | |
parent | 408d060dff4737d5468e7ff04035f1674a923198 (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>
Diffstat (limited to 'vcl')
-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; } |