vlc/vlc-1.1 | branch: master | Rémi Denis-Courmont <[email protected]> | Mon Oct 
25 18:28:45 2010 +0300| [6cc4c402ddcbd3d398dc7e1daa675950cc1f640d] | committer: 
Rémi Denis-Courmont 

Object reference leak

(cherry picked from commit 33a042e0019f157bc2a6a136a247f9b9fc1bbd31)

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

 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 13597bb..4c2332c 100644
--- a/src/control/video.c
+++ b/src/control/video.c
@@ -154,7 +154,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;
 }
 

_______________________________________________
vlc-commits mailing list
[email protected]
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to