Skip to content

Commit

Permalink
fix #960 memory leak regression in dcd7e61
Browse files Browse the repository at this point in the history
  • Loading branch information
ddennedy committed Nov 19, 2023
1 parent aff8996 commit 677e0f2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/modules/avformat/producer_avformat.c
Original file line number Diff line number Diff line change
Expand Up @@ -2108,9 +2108,7 @@ static int producer_get_image(mlt_frame frame,
}
if (self->image_cache) {
mlt_frame original = mlt_cache_get_frame(self->image_cache, position);
if (original
&& (*format == mlt_image_none
|| *format == mlt_properties_get_int(MLT_FRAME_PROPERTIES(original), "format"))) {
if (original) {
mlt_properties orig_props = MLT_FRAME_PROPERTIES(original);
int size = 0;

Expand Down

0 comments on commit 677e0f2

Please sign in to comment.