From: RĂ©mi Duraffort Date: Tue, 17 Mar 2009 20:40:23 +0000 (+0100) Subject: directfb: fix potential memleak. X-Git-Tag: 1.0.0-pre1~10 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=1ece85a604d13f5c6236f872c80caf13893eb3b4;p=vlc directfb: fix potential memleak. --- diff --git a/modules/video_output/directfb.c b/modules/video_output/directfb.c index 5d31d80a37..dce0dfadc2 100644 --- a/modules/video_output/directfb.c +++ b/modules/video_output/directfb.c @@ -1,7 +1,7 @@ /***************************************************************************** * directfb.c: DirectFB video output display method ***************************************************************************** - * Copyright (C) 2005 the VideoLAN team + * Copyright (C) 2005-2009 the VideoLAN team * * Authors: Iuri Diniz * @@ -101,6 +101,7 @@ static int Create( vlc_object_t *p_this ) if( DirectFBInit(NULL,NULL) != DFB_OK ) { msg_Err(p_vout, "Cannot init DirectFB"); + free( p_sys ); return VLC_EGENERIC; }