Commit bd4fde7b authored by Jean-Paul Saman's avatar Jean-Paul Saman

vout_subpictures.c: Fix Dereference after null check (cid 1213781)

Fixes a bug introduced in commit 7d8714d9
parent eae2f440
......@@ -1393,8 +1393,9 @@ void spu_PutSubpicture(spu_t *spu, subpicture_t *subpic)
if only if 'chain_update' has a value */
if (chain_update && *chain_update) {
vlc_mutex_lock(&sys->lock);
if (!sys->source_chain_update && !*sys->source_chain_update) {
free(sys->source_chain_update);
if (!sys->source_chain_update || !*sys->source_chain_update) {
if (sys->source_chain_update)
free(sys->source_chain_update);
sys->source_chain_update = chain_update;
chain_update = NULL;
}
......
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