[vlc-devel] commit: panoramix: fix memleak. ( Rémi Duraffort )
git version control
git at videolan.org
Fri Jul 24 11:47:15 CEST 2009
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Fri Jul 24 11:42:49 2009 +0200| [b36ed57c1396a774a6381685b6df8e5cbe49fd6a] | committer: Rémi Duraffort
panoramix: fix memleak.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b36ed57c1396a774a6381685b6df8e5cbe49fd6a
---
modules/video_filter/panoramix.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/modules/video_filter/panoramix.c b/modules/video_filter/panoramix.c
index 5e4cdb2..635e596 100644
--- a/modules/video_filter/panoramix.c
+++ b/modules/video_filter/panoramix.c
@@ -344,6 +344,7 @@ static unsigned CountMonitors( vlc_object_t *obj )
char *psz_display = var_CreateGetNonEmptyString( obj, "x11-display" );
int snum;
xcb_connection_t *conn = xcb_connect( psz_display, &snum );
+ free( psz_display );
if( xcb_connection_has_error( conn ) )
return 0;
More information about the vlc-devel
mailing list