]> git.sesse.net Git - vlc/commitdiff
opengl: fix potential memleak
authorJean-Paul Saman <jpsaman@videolan.org>
Fri, 1 May 2009 14:12:57 +0000 (16:12 +0200)
committerJean-Paul Saman <jpsaman@videolan.org>
Tue, 5 May 2009 09:41:45 +0000 (11:41 +0200)
modules/video_output/opengl.c

index 698defc9c08658ab791b185c3579ed3471477455..12dda3ea18ec1ebc1dbaa3daa1fc2d8ddc2e7281 100644 (file)
@@ -207,6 +207,7 @@ static int CreateVout( vlc_object_t *p_this )
         msg_Warn( p_vout, "No OpenGL provider found" );
         vlc_object_detach( p_sys->p_vout );
         vlc_object_release( p_sys->p_vout );
+        free( p_sys );
         return VLC_ENOOBJ;
     }