[vlc-commits] commit: Object reference leak ( Rémi Denis-Courmont )

git at videolan.org git at videolan.org
Mon Oct 25 17:31:31 CEST 2010


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Oct 25 18:28:45 2010 +0300| [f0a5f0118c43a4be4fff0cad200d8448150a7bdc] | committer: Rémi Denis-Courmont 

Object reference leak

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f0a5f0118c43a4be4fff0cad200d8448150a7bdc
---

 src/control/video.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/control/video.c b/src/control/video.c
index 2f122a5..d552b6a 100644
--- a/src/control/video.c
+++ b/src/control/video.c
@@ -153,7 +153,8 @@ libvlc_video_take_snapshot( libvlc_media_player_t *p_mi, unsigned num,
     var_SetInteger( p_vout, "snapshot-height", i_height );
     var_SetString( p_vout, "snapshot-path", psz_filepath );
     var_SetString( p_vout, "snapshot-format", "png" );
-    var_TriggerCallback (p_vout, "video-snapshot" );
+    var_TriggerCallback( p_vout, "video-snapshot" );
+    vlc_object_release( p_vout )
     return 0;
 }
 



More information about the vlc-commits mailing list