Commit 4b1a1155 authored by Thomas Guillem's avatar Thomas Guillem

vmem: fix NULL dereference

parent a6305ff5
......@@ -267,8 +267,11 @@ static void Close(vlc_object_t *object)
if (sys->cleanup)
sys->cleanup(sys->opaque);
picture_pool_Enum(sys->pool, Unlock, sys);
picture_pool_Release(sys->pool);
if (sys->pool)
{
picture_pool_Enum(sys->pool, Unlock, sys);
picture_pool_Release(sys->pool);
}
free(sys);
}
......
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