Commit 89ab9b79 authored by Pierre Ynard's avatar Pierre Ynard

win32text: fix memleak

(cherry picked from commit 5e2c4b1a)
parent cdbb7e2d
......@@ -370,6 +370,7 @@ static int RenderText( filter_t *p_filter, subpicture_region_t *p_region_out,
if( !bitmap )
{
msg_Err( p_filter, "could not create bitmap" );
free( psz_string );
return VLC_EGENERIC;
}
......@@ -388,6 +389,7 @@ static int RenderText( filter_t *p_filter, subpicture_region_t *p_region_out,
SelectObject( p_sys->hcdc, bitmap_bak );
DeleteObject( bitmap );
free( psz_string );
return VLC_SUCCESS;
}
......
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