[vlc-devel] commit: vlc_object_hold is not needed (vlc_object_find already holds it) ( Erwan Tulou )

git version control git at videolan.org
Mon Mar 9 17:20:58 CET 2009


vlc | branch: master | Erwan Tulou <brezhoneg1 at yahoo.fr> | Sun Mar  8 20:07:07 2009 +0100| [e58d709408be2ddfa59089e43d726abcf031a2d7] | committer: Rémi Denis-Courmont 

vlc_object_hold is not needed (vlc_object_find already holds it)

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

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

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

diff --git a/modules/misc/freetype.c b/modules/misc/freetype.c
index 19b96ab..c638da0 100644
--- a/modules/misc/freetype.c
+++ b/modules/misc/freetype.c
@@ -477,8 +477,7 @@ 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