Commit 1ece85a6 authored by Rémi Duraffort's avatar Rémi Duraffort

directfb: fix potential memleak.

parent 5dc266b9
/***************************************************************************** /*****************************************************************************
* directfb.c: DirectFB video output display method * directfb.c: DirectFB video output display method
***************************************************************************** *****************************************************************************
* Copyright (C) 2005 the VideoLAN team * Copyright (C) 2005-2009 the VideoLAN team
* *
* Authors: Iuri Diniz <iuri@digizap.com.br> * Authors: Iuri Diniz <iuri@digizap.com.br>
* *
...@@ -101,6 +101,7 @@ static int Create( vlc_object_t *p_this ) ...@@ -101,6 +101,7 @@ static int Create( vlc_object_t *p_this )
if( DirectFBInit(NULL,NULL) != DFB_OK ) if( DirectFBInit(NULL,NULL) != DFB_OK )
{ {
msg_Err(p_vout, "Cannot init DirectFB"); msg_Err(p_vout, "Cannot init DirectFB");
free( p_sys );
return VLC_EGENERIC; return VLC_EGENERIC;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment