[vlc-devel] commit: libvlc_media_player: fix potential object leaks. ( Rémi Duraffort )
git version control
git at videolan.org
Mon Aug 17 14:59:43 CEST 2009
vlc | branch: 1.0-bugfix | Rémi Duraffort <ivoire at videolan.org> | Mon Aug 17 14:54:31 2009 +0200| [45b1359d6b9237d0d112d4e2d73ee16d6852d604] | committer: Rémi Duraffort
libvlc_media_player: fix potential object leaks.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=45b1359d6b9237d0d112d4e2d73ee16d6852d604
---
src/control/media_player.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/control/media_player.c b/src/control/media_player.c
index 477b77c..f69f621 100644
--- a/src/control/media_player.c
+++ b/src/control/media_player.c
@@ -1187,6 +1187,7 @@ float libvlc_media_player_get_rate(
b_can_rewind = var_GetBool( p_input_thread, "can-rewind" );
if( (val.i_int < 0) && !b_can_rewind )
{
+ vlc_object_release( p_input_thread );
libvlc_exception_raise( p_e, "invalid rate" );
return 0.0;
}
More information about the vlc-devel
mailing list