]> git.sesse.net Git - vlc/blobdiff - modules/video_output/msw/direct3d.c
Fixed direct3d open error handling.
[vlc] / modules / video_output / msw / direct3d.c
index dcebe6fc0c8d1b0eb1c8a3fe7bb393510edbd923..91963e47204d9054c25457a19733a6f3af9107cf 100644 (file)
@@ -167,7 +167,9 @@ static int OpenVideo( vlc_object_t *p_this )
     if( VLC_SUCCESS != Direct3DVoutCreate( p_vout ) )
     {
         msg_Err( p_vout, "Direct3D could not be initialized !");
-        goto error;
+        Direct3DVoutRelease( p_vout );
+        free( p_vout->p_sys );
+        return VLC_EGENERIC;
     }
 
     /* Initialisations */