[vlc-devel] commit: Fix memory leak (legacy of CID 92) ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sat May 31 22:18:51 CEST 2008
vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sat May 31 23:20:29 2008 +0300| [c45fbbdf1014b87cc36f2cab4bb683415e123377]
Fix memory leak (legacy of CID 92)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c45fbbdf1014b87cc36f2cab4bb683415e123377
---
src/control/mediacontrol_core.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/control/mediacontrol_core.c b/src/control/mediacontrol_core.c
index 4a6125e..dbdb5cf 100644
--- a/src/control/mediacontrol_core.c
+++ b/src/control/mediacontrol_core.c
@@ -134,6 +134,7 @@ mediacontrol_get_media_position( mediacontrol_Instance *self,
if( an_origin != mediacontrol_AbsolutePosition )
{
+ free( retval );
/* Relative or ModuloPosition make no sense */
RAISE_NULL( mediacontrol_PositionOriginNotSupported,
"Only absolute position is valid." );
More information about the vlc-devel
mailing list