[vlc-devel] commit: Fix object leaking when taking a snapshot. ( Rémi Duraffort )
git version control
git at videolan.org
Fri Sep 5 23:44:08 CEST 2008
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Fri Sep 5 23:47:06 2008 +0200| [dbc2bb8aea3167922d0688aabcde6d65440aa060] | committer: Rémi Duraffort
Fix object leaking when taking a snapshot.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=dbc2bb8aea3167922d0688aabcde6d65440aa060
---
modules/gui/qt4/components/interface_widgets.cpp | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/modules/gui/qt4/components/interface_widgets.cpp b/modules/gui/qt4/components/interface_widgets.cpp
index 12b4079..c6424e4 100644
--- a/modules/gui/qt4/components/interface_widgets.cpp
+++ b/modules/gui/qt4/components/interface_widgets.cpp
@@ -405,7 +405,11 @@ void AdvControlsWidget::snapshot()
{
vout_thread_t *p_vout =
(vout_thread_t *)vlc_object_find( p_intf, VLC_OBJECT_VOUT, FIND_ANYWHERE );
- if( p_vout ) vout_Control( p_vout, VOUT_SNAPSHOT );
+ if( p_vout )
+ {
+ vout_Control( p_vout, VOUT_SNAPSHOT );
+ vlc_object_release( p_vout );
+ }
}
/* Function called when the button is clicked() */
More information about the vlc-devel
mailing list