git.videolan.org
/
vlc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3e60613
)
Memory leaks
author
Rémi Denis-Courmont
<rdenis@simphalempin.com>
Sat, 17 Jan 2009 20:22:15 +0000
(22:22 +0200)
committer
Rémi Denis-Courmont
<rdenis@simphalempin.com>
Sat, 17 Jan 2009 20:22:15 +0000
(22:22 +0200)
src/libvlc.c
patch
|
blob
|
history
diff --git
a/src/libvlc.c
b/src/libvlc.c
index
8ae8005
..
c11e151
100644
(file)
--- a/
src/libvlc.c
+++ b/
src/libvlc.c
@@
-430,6
+430,7
@@
int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
if( b_exit )
{
if( b_exit )
{
+ free( priv->psz_configfile );
module_EndBank( p_libvlc );
return i_ret;
}
module_EndBank( p_libvlc );
return i_ret;
}
@@
-540,6
+541,7
@@
int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
if( b_exit )
{
if( b_exit )
{
+ free( priv->psz_configfile );
module_EndBank( p_libvlc );
return i_ret;
}
module_EndBank( p_libvlc );
return i_ret;
}
@@
-567,6
+569,7
@@
int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
"that they are valid.\n" );
PauseConsole();
#endif
"that they are valid.\n" );
PauseConsole();
#endif
+ free( priv->psz_configfile );
module_EndBank( p_libvlc );
return VLC_EGENERIC;
}
module_EndBank( p_libvlc );
return VLC_EGENERIC;
}
@@
-719,6
+722,7
@@
int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
"-dontprintthatone\n"
"(keyword 'all' to applies to all objects)\n");
free( psz_verbose_objects );
"-dontprintthatone\n"
"(keyword 'all' to applies to all objects)\n");
free( psz_verbose_objects );
+ /* FIXME: leaks!!!! */
return VLC_EGENERIC;
}
}
return VLC_EGENERIC;
}
}
@@
-792,7
+796,7
@@
int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
if( !p_libvlc->p_stats )
{
vlc_object_release( p_libvlc );
if( !p_libvlc->p_stats )
{
vlc_object_release( p_libvlc );
- return VLC_ENOMEM;
+ return VLC_ENOMEM;
/* FIXME: leaks */
}
vlc_mutex_init( &p_libvlc->p_stats->lock );
priv->p_stats_computer = NULL;
}
vlc_mutex_init( &p_libvlc->p_stats->lock );
priv->p_stats_computer = NULL;
@@
-823,6
+827,7
@@
int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
module_unneed( p_libvlc, priv->p_memcpy_module );
}
module_EndBank( p_libvlc );
module_unneed( p_libvlc, priv->p_memcpy_module );
}
module_EndBank( p_libvlc );
+ free( priv->psz_configfile );
return VLC_EGENERIC;
}
playlist_Activate( p_playlist );
return VLC_EGENERIC;
}
playlist_Activate( p_playlist );