Commit 45b1359d authored by Rémi Duraffort's avatar Rémi Duraffort

libvlc_media_player: fix potential object leaks.

parent 82f6dd20
...@@ -1187,6 +1187,7 @@ float libvlc_media_player_get_rate( ...@@ -1187,6 +1187,7 @@ float libvlc_media_player_get_rate(
b_can_rewind = var_GetBool( p_input_thread, "can-rewind" ); b_can_rewind = var_GetBool( p_input_thread, "can-rewind" );
if( (val.i_int < 0) && !b_can_rewind ) if( (val.i_int < 0) && !b_can_rewind )
{ {
vlc_object_release( p_input_thread );
libvlc_exception_raise( p_e, "invalid rate" ); libvlc_exception_raise( p_e, "invalid rate" );
return 0.0; return 0.0;
} }
......
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