fontconfig: fix unpaired object release
authorRémi Denis-Courmont <rdenis@simphalempin.com>
Sat, 24 Jan 2009 13:56:17 +0000 (15:56 +0200)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Sat, 24 Jan 2009 13:56:17 +0000 (15:56 +0200)
modules/misc/freetype.c

index ac34fc8..a397304 100644 (file)
@@ -475,6 +475,8 @@ static vlc_object_t *FontBuilderAttach( filter_t *p_filter )
             }
         }
     }
+    else
+        vlc_object_hold( p_fontbuilder );
     if( p_fontbuilder )
     {
         var_AddCallback( p_fontbuilder, "build-done", FontBuilderDone, p_filter );