freetype: make sure the FontBuilder is finished when we destroy the module.
authorRafaël Carré <funman@videolan.org>
Tue, 9 Oct 2007 11:48:29 +0000 (11:48 +0000)
committerRafaël Carré <funman@videolan.org>
Tue, 9 Oct 2007 11:48:29 +0000 (11:48 +0000)
modules/misc/freetype.c

index 61eaac3..50ffa76 100644 (file)
@@ -447,6 +447,8 @@ static void Destroy( vlc_object_t *p_this )
     }
 
 #ifdef HAVE_FONTCONFIG
+    /* wait for the FontBuilder thread to terminate */
+    vlc_thread_join( p_this );
     vlc_mutex_destroy( &p_sys->fontconfig_lock );
 
     if( p_sys->p_fontconfig )