[vlc-devel] commit: macosx: Fix a memleak. (Pierre d'Herbemont )
git version control
git at videolan.org
Sat Aug 2 15:57:02 CEST 2008
vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Sat Aug 2 15:59:41 2008 +0200| [de587c237065de4696d9d035d0504cdf34990d87] | committer: Pierre d'Herbemont
macosx: Fix a memleak.
(ivoire, I guess there are potentially a lot of interaction related memleak).
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=de587c237065de4696d9d035d0504cdf34990d87
---
modules/gui/macosx/playlist.m | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/modules/gui/macosx/playlist.m b/modules/gui/macosx/playlist.m
index 7598e4c..5e01eda 100644
--- a/modules/gui/macosx/playlist.m
+++ b/modules/gui/macosx/playlist.m
@@ -1354,7 +1354,7 @@
_("Please enter a name for the new node."), &psz_name );
PL_LOCK;
- if( ret_v != DIALOG_CANCELLED && psz_name && *psz_name )
+ if( ret_v != DIALOG_CANCELLED && psz_name )
{
playlist_NodeCreate( p_playlist, psz_name,
p_playlist->p_local_category, 0, NULL );
@@ -1367,6 +1367,7 @@
}
PL_UNLOCK;
+ free( psz_name );
pl_Release( VLCIntf );
[ourPool release];
}
More information about the vlc-devel
mailing list