]> git.sesse.net Git - vlc/blobdiff - src/control/core.c
Repair libvlc_get_changeset()
[vlc] / src / control / core.c
index 0ac8a3c8382e2bb57bd00f4591db11dac8b413d4..da2a9b2d969bec7c61fda01391d318814b5a8dc6 100644 (file)
@@ -138,6 +138,7 @@ libvlc_instance_t * libvlc_new( int argc, const char *const *argv,
 
     p_new->p_libvlc_int = p_libvlc_int;
     p_new->p_vlm = NULL;
+    p_new->p_event_manager = NULL;
     p_new->b_playlist_locked = 0;
     p_new->ref_count = 1;
     p_new->verbosity = 1;
@@ -173,6 +174,8 @@ void libvlc_release( libvlc_instance_t *p_instance )
     {
         vlc_mutex_destroy( lock );
         vlc_mutex_destroy( &p_instance->event_callback_lock );
+        if( p_instance->p_event_manager )
+            libvlc_event_manager_release( p_instance->p_event_manager );
         libvlc_InternalCleanup( p_instance->p_libvlc_int );
         libvlc_InternalDestroy( p_instance->p_libvlc_int );
         free( p_instance );
@@ -210,7 +213,8 @@ const char * libvlc_get_compiler(void)
 
 const char * libvlc_get_changeset(void)
 {
-    return "exported";
+    extern const char psz_vlc_changeset[];
+    return psz_vlc_changeset;
 }
 
 /* export internal libvlc_instance for ugly hacks with libvlccore */