zbar_pipeline: fix memory leak, when pixel format is unsupported

This commit is contained in:
Andrey Skvortsov
2025-05-29 00:08:38 +03:00
committed by Martijn Braam
parent 4c29f88069
commit 886fea58bd

View File

@@ -241,6 +241,8 @@ process_image(MPPipeline *pipeline, MPZBarImage **_image)
break; break;
default: default:
printf("Preview pixel format not supported - zbar won't work\n"); printf("Preview pixel format not supported - zbar won't work\n");
free(data);
mp_zbar_image_unref(image);
return; return;
} }