]> git.sesse.net Git - vlc/blobdiff - src/misc/darwin_specific.c
vcdx: Fix memleaks.
[vlc] / src / misc / darwin_specific.c
index f962c1def3f02f66900d0b2e635577173d694580..6e68ee1241dea61c9f0cc69414c11b3f5d89529d 100644 (file)
@@ -27,7 +27,7 @@
 # include "config.h"
 #endif
 
-#include <vlc/vlc.h>
+#include <vlc_common.h>
 #include "../libvlc.h"
 #include <dirent.h>                                                /* *dir() */
 
@@ -168,9 +168,6 @@ void system_Init( libvlc_int_t *p_this, int *pi_argc, const char *ppsz_argv[] )
         }
         CFRelease( all_locales );
     }
-
-    vlc_mutex_init( p_this, &vlc_global()->iconv_lock );
-    vlc_global()->iconv_macosx = vlc_iconv_open( "UTF-8", "UTF-8-MAC" );
 }
 
 /*****************************************************************************
@@ -190,9 +187,5 @@ void system_End( libvlc_int_t *p_this )
 {
     (void)p_this;
     free( vlc_global()->psz_vlcpath );
-
-    if ( vlc_global()->iconv_macosx != (vlc_iconv_t)-1 )
-        vlc_iconv_close( vlc_global()->iconv_macosx );
-    vlc_mutex_destroy( &vlc_global()->iconv_lock );
 }