Commit b88dbb4d authored by David Fuhrmann's avatar David Fuhrmann Committed by Jean-Baptiste Kempf

puzzle: fix error check, do not leak pictures on error

close #14006

(cherry picked from commit 5c2fc028e78429b8a9d540c7fa9d227c5efa0620)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 4148fb1d
......@@ -289,9 +289,12 @@ picture_t *Filter( filter_t *p_filter, picture_t *p_pic_in ) {
/* assert no mismatch between sizes */
if ( p_sys->s_current_param.i_pict_width != p_sys->s_current_param.i_desk_width
|| p_sys->s_current_param.i_pict_height != p_sys->s_current_param.i_desk_height
|| p_sys->s_current_param.i_pict_width != (int) p_fmt_in->i_width
|| p_sys->s_current_param.i_pict_height != (int) p_fmt_in->i_height )
|| p_sys->s_current_param.i_pict_width != (int) p_fmt_in->i_visible_width
|| p_sys->s_current_param.i_pict_height != (int) p_fmt_in->i_visible_height ) {
picture_Release(p_pic_in);
picture_Release(p_pic_out);
return NULL;
}
vlc_mutex_lock( &p_sys->lock );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment