Commit 658d4d7a authored by Clément Stenac's avatar Clément Stenac

free

parent b8c5f7b1
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* sap.c : SAP interface module * sap.c : SAP interface module
***************************************************************************** *****************************************************************************
* Copyright (C) 2001 VideoLAN * Copyright (C) 2001 VideoLAN
* $Id: sap.c,v 1.41 2003/12/11 20:08:48 zorglub Exp $ * $Id: sap.c,v 1.42 2003/12/11 20:40:37 zorglub Exp $
* *
* Authors: Arnaud Schauly <gitan@via.ecp.fr> * Authors: Arnaud Schauly <gitan@via.ecp.fr>
* Clment Stenac <zorglub@via.ecp.fr> * Clment Stenac <zorglub@via.ecp.fr>
...@@ -334,6 +334,7 @@ static void Close( vlc_object_t *p_this ) ...@@ -334,6 +334,7 @@ static void Close( vlc_object_t *p_this )
{ {
intf_thread_t *p_intf = (intf_thread_t*)p_this; intf_thread_t *p_intf = (intf_thread_t*)p_this;
intf_sys_t *p_sys = p_intf->p_sys; intf_sys_t *p_sys = p_intf->p_sys;
int i;
if( p_sys->fd[0] > 0 ) if( p_sys->fd[0] > 0 )
{ {
...@@ -344,6 +345,15 @@ static void Close( vlc_object_t *p_this ) ...@@ -344,6 +345,15 @@ static void Close( vlc_object_t *p_this )
close( p_sys->fd[1] ); close( p_sys->fd[1] );
} }
for( i = 0 ; i< p_sys->i_announces ; i++ )
{
if( p_sys->pp_announces[i]->psz_name )
free( p_sys->pp_announces[i]->psz_name );
if( p_sys->pp_announces[i]->psz_uri )
free( p_sys->pp_announces[i]->psz_uri );
free( p_sys->pp_announces[i] );
}
free( p_sys ); free( p_sys );
} }
......
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