]> git.sesse.net Git - vlc/blobdiff - modules/video_output/msw/directx.c
MSW: fix assertion failure on Open() error paths (fix #3889)
[vlc] / modules / video_output / msw / directx.c
index 020725a45265a9958133687eb4f2417c47100629..014a0d0b086eb627e2e2ef83c16d8a06e8c60a4d 100644 (file)
@@ -236,7 +236,11 @@ static int Open(vlc_object_t *object)
     return VLC_SUCCESS;
 
 error:
-    Close(VLC_OBJECT(vd));
+    DirectXClose(vd);
+    CommonClean(vd);
+    if (sys->hddraw_dll)
+        FreeLibrary(sys->hddraw_dll);
+    free(sys);
     return VLC_EGENERIC;
 }