zbar_pipeline: fix memory leak, when pixel format is unsupported
This commit is contained in:

committed by
Martijn Braam

parent
4c29f88069
commit
886fea58bd
@@ -241,6 +241,8 @@ process_image(MPPipeline *pipeline, MPZBarImage **_image)
|
||||
break;
|
||||
default:
|
||||
printf("Preview pixel format not supported - zbar won't work\n");
|
||||
free(data);
|
||||
mp_zbar_image_unref(image);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user