[vlc-devel] commit: Fixed a rare sent-msg-to-freed-object issue ( Felix Paul Kühne )

git version control git at videolan.org
Wed Jul 16 23:11:26 CEST 2008


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Wed Jul 16 23:13:49 2008 +0200| [65b80858efa00f65e20a20c0518e2dc202da65d6]

Fixed a rare sent-msg-to-freed-object issue

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

 modules/access/qtcapture.m |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/access/qtcapture.m b/modules/access/qtcapture.m
index 78fb604..bb99846 100644
--- a/modules/access/qtcapture.m
+++ b/modules/access/qtcapture.m
@@ -323,9 +323,9 @@ static void Close( vlc_object_t *p_this )
     if( vlc_object_alive(p_this->p_libvlc))
     {
         [p_sys->session stopRunning];
+        [p_sys->device release];
         [p_sys->output release];
         [p_sys->session release];
-        [p_sys->device release];
     }
     free( p_sys );
 




More information about the vlc-devel mailing list