[vlc-devel] commit: fontconfig: fix unpaired object release ( Rémi Denis-Courmont )

git version control git at videolan.org
Sat Jan 24 14:58:15 CET 2009


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sat Jan 24 15:56:17 2009 +0200| [6c12fccf36421378a439879c4f765625182bae00] | committer: Rémi Denis-Courmont 

fontconfig: fix unpaired object release

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6c12fccf36421378a439879c4f765625182bae00
---

 modules/misc/freetype.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/modules/misc/freetype.c b/modules/misc/freetype.c
index ac34fc8..a397304 100644
--- a/modules/misc/freetype.c
+++ b/modules/misc/freetype.c
@@ -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 );




More information about the vlc-devel mailing list