]> git.sesse.net Git - vlc/commitdiff
Fixed direct3d open error handling.
authorLaurent Aimar <fenrir@videolan.org>
Sat, 25 Apr 2009 12:02:57 +0000 (14:02 +0200)
committerLaurent Aimar <fenrir@videolan.org>
Sat, 25 Apr 2009 12:02:57 +0000 (14:02 +0200)
At least a non allocated lock was released.

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 */