Commit e14221d5 authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf

direct3d9: fix crash when closing without a picture pool

It's done in all other windows vout.
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 28471351
......@@ -1048,7 +1048,8 @@ static int Direct3D9CreateResources(vout_display_t *vd, video_format_t *fmt)
static void Direct3D9DestroyResources(vout_display_t *vd)
{
Direct3D9DestroyScene(vd);
picture_pool_Release(vd->sys->sys.pool);
if (vd->sys->sys.pool)
picture_pool_Release(vd->sys->sys.pool);
Direct3D9DestroyShaders(vd);
}
......
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