changeset 1072:4ae9461e88ca

fixed failed assertion in exif_free
author nadvornik
date Mon, 20 Oct 2008 17:13:32 +0000
parents 01e743d275f2
children 577d726e32f0
files src/exiv2.cc
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/exiv2.cc	Sat Oct 18 20:17:55 2008 +0000
+++ b/src/exiv2.cc	Mon Oct 20 17:13:32 2008 +0000
@@ -352,6 +352,7 @@
 
 void exif_free(ExifData *exif)
 {
+	if (!exif) return;
 	g_assert(dynamic_cast<_ExifDataProcessed *>(exif)); // this should not be called on ExifDataOriginal
 	delete exif;
 }