diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2007-08-03 21:24:50 +0200 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2007-08-03 21:24:50 +0200 |
commit | be42efba06710f583b9ffef94c4e46c82181e731 (patch) | |
tree | f25419e6f14cc6b3b99ebfc2e30256890f98b3c1 /src | |
parent | 13cbcd631f4a66f3551bc3d95b67e58448512c8e (diff) |
use md member
Diffstat (limited to 'src')
-rw-r--r-- | src/ImageMetaData.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ImageMetaData.cxx b/src/ImageMetaData.cxx index 5f619d2..d79b937 100644 --- a/src/ImageMetaData.cxx +++ b/src/ImageMetaData.cxx @@ -18,6 +18,8 @@ #include "ImageMetaData.H" ImageMetaData::ImageMetaData() { + manufacturer = NULL; + model = NULL; clear(); } @@ -28,7 +30,9 @@ ImageMetaData::~ImageMetaData() { void ImageMetaData::clear() { + if (manufacturer) free(manufacturer); manufacturer = NULL; + if (model) free(model); model = NULL; longitude = NAN; latitude = NAN; @@ -49,8 +53,6 @@ int ImageMetaData::load_image(char *name, int img_width) { int ret; - if (manufacturer) free(manufacturer); - if (model) free(model); clear(); ret = load_image_jpgcom(name); |