remove allocation, done by called function now
This commit is contained in:
@@ -195,9 +195,7 @@ get_file_func (CameraFilesystem *fs, const char *folder, const char *filename,
|
||||
return GP_ERROR;
|
||||
}
|
||||
|
||||
data = malloc (w*h);
|
||||
if(!data)
|
||||
return GP_ERROR_NO_MEMORY;
|
||||
data = NULL;
|
||||
|
||||
GP_DEBUG("Fetch entry %i\n", k);
|
||||
b = clicksmart_read_pic_data (camera->pl, camera->port, &data, k);
|
||||
|
||||
Reference in New Issue
Block a user