[vlc-devel] commit: dc1394: fix memleaks. ( Rémi Duraffort )

git version control git at videolan.org
Fri Dec 4 11:38:56 CET 2009


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Fri Dec  4 11:38:58 2009 +0100| [bde235ca1b50795f173f61293d0c2643eb9fb66b] | committer: Rémi Duraffort 

dc1394: fix memleaks.

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

 modules/access/dc1394.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/modules/access/dc1394.c b/modules/access/dc1394.c
index 111bbbb..83c5119 100644
--- a/modules/access/dc1394.c
+++ b/modules/access/dc1394.c
@@ -521,6 +521,7 @@ static void Close( vlc_object_t *p_this )
     dc1394_camera_free(p_sys->camera);
     dc1394_free(p_sys->p_dccontext);
 
+    free( p_sys->video_device );
     free( p_sys->audio_device );
     free( p_sys );
 }
@@ -969,5 +970,7 @@ static int process_options( demux_t *p_demux )
         else // YUV422 default
             p_sys->video_mode = DC1394_VIDEO_MODE_640x480_YUV422;
     }
+
+    free( psz_dup );
     return VLC_SUCCESS;
 }




More information about the vlc-devel mailing list