Commit 4bd735fb authored by Laurent Aimar's avatar Laurent Aimar

Fixed an unlikely segfault (subtitles).

parent e827c773
......@@ -1604,8 +1604,11 @@ exit:
* pre-rendered state, so the next time through everything is
* calculated again.
*/
picture_Release( p_region->p_picture );
p_region->p_picture = NULL;
if( p_region->p_picture )
{
picture_Release( p_region->p_picture );
p_region->p_picture = NULL;
}
if( p_region->p_private )
{
SpuRegionPrivateDelete( p_region->p_private );
......
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