From: Lutz M?l. <lu...@us...> - 2003-10-30 22:10:48
|
Update of /cvsroot/libexif/libexif/libexif/olympus In directory sc8-pr-cvs1:/tmp/cvs-serv2013/libexif/olympus Modified Files: exif-mnote-data-olympus.c Log Message: Index: exif-mnote-data-olympus.c =================================================================== RCS file: /cvsroot/libexif/libexif/libexif/olympus/exif-mnote-data-olympus.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- exif-mnote-data-olympus.c 28 Oct 2003 22:50:07 -0000 1.3 +++ exif-mnote-data-olympus.c 30 Oct 2003 22:10:45 -0000 1.4 @@ -52,18 +52,9 @@ static void exif_mnote_data_olympus_free (ExifMnoteData *n) { - ExifMnoteDataOlympus *note = (ExifMnoteDataOlympus *) n; - unsigned int i; + if (!n) return; - if (note->entries) { - for (i = 0; i < note->count; i++) { - free (note->entries[i].data); - note->entries[i].data = NULL; - } - free (note->entries); - note->entries = NULL; - note->count = 0; - } + exif_mnote_data_olympus_clear ((ExifMnoteDataOlympus *) n); } static char * |