free rawdata

git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14642 67ed7778-7388-44ab-90cf-0a291f65f57c
This commit is contained in:
Marcus Meissner
2014-01-05 21:53:15 +00:00
parent 42cbc92b76
commit ba6645f5d3

View File

@@ -397,6 +397,7 @@ get_file_func (CameraFilesystem *fs, const char *folder, const char *filename,
gp_file_set_mime_type (file, GP_MIME_PPM);
gp_file_set_data_and_size (file, (char *)ppm, size);
free (rawdata);
} else { /* type is GP_FILE_TYPE_RAW */
size = w*h/comp_ratio;