Hi,<br><br>Yes, i am able to see many errors related to FcFontMatch in valgrind..FcPatternDestroy() function is called after FcFontMatch() in my code below is the function......<br><br> FcPattern* match = FcFontMatch(0, pattern, &amp;result);<br>
                if(match) {<br>                        FcChar8* str = 0;<br>                        if(FcPatternGetString(match, FC_FILE, 0, &amp;str) == FcResultMatch) {<br>                                filename = (const char*)str;<br>
                        }<br>                }<br>                FcPatternDestroy(pattern);<br>        }<br>        printf(&quot;return from FontConfig::Find\n&quot;);<br>        return filename;<br>}<br><br>And in valgrind other FcFontMatch related errors are--------<br>
<br>80 bytes in 4 blocks are possibly lost in loss record 78 of 160<br>==15388==    at 0x4024F20: malloc (vg_replace_malloc.c:236)<br>==15388==    by 0x4C67952: FcPatternObjectAddWithBinding (fcpat.c:479)<br>==15388==    by 0x4C681CB: FcPatternObjectAdd (fcpat.c:537)<br>
==15388==    by 0x4C64287: FcFontRenderPrepare (fcmatch.c:420)<br>==15388==    by 0x4C644C7: FcFontMatch (fcmatch.c:564)<br>==15388==    by 0x4B344C4: FontConfig::Find(char const*, bool, bool) (unixfontconfig.cpp:75)<br>==15388==    by 0x4B3439C: FontConfig::FindFont(char const*, bool, bool) (unixfontconfig.cpp:49)<br>
==15388==    by 0x4B3522E: SIInterface::SI_CreateFont(MM_Object*, FI_FontInfo const*, void**) (SITextDrawImpl.cpp:324)<br>==15388==    by 0x625BDE7: HostCallback2&lt;unsigned short, FI_FontInfo const*, void**&gt;::Invoke(void*) (si_wrappers.cpp:130)<br>
==15388==    by 0x63A1331: CorePlayer::InvokeHostCallback(VirtualHostCallback&amp;) (splayer.cpp:12240)<br>==15388==    by 0x62550B9: MM_SI_CreateFont(PlatformPlayer*, FI_FontInfo const*, void**) (si_wrappers.cpp:1067)<br>
==15388==    by 0x6242DA8: PlatformEDevice::CreatePlatformFont(PlatformECharFormat*, int, unsigned char) (FL_fonts.cpp:1157)<br>------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------<br>
80 bytes in 2 blocks are possibly lost in loss record 77 of 160<br>==15388==    at 0x4024F20: malloc (vg_replace_malloc.c:236)<br>==15388==    by 0x4C61612: FcLangSetCreate (fclang.c:284)<br>==15388==    by 0x4C6172B: FcLangSetCopy (fclang.c:308)<br>
==15388==    by 0x4C678CA: FcValueSave (fcpat.c:116)<br>==15388==    by 0x4C679B2: FcPatternObjectAddWithBinding (fcpat.c:485)<br>==15388==    by 0x4C681CB: FcPatternObjectAdd (fcpat.c:537)<br>==15388==    by 0x4C64287: FcFontRenderPrepare (fcmatch.c:420)<br>
==15388==    by 0x4C644C7: FcFontMatch (fcmatch.c:564)<br>==15388==    by 0x4B344C4: FontConfig::Find(char const*, bool, bool) (unixfontconfig.cpp:75)<br>==15388==    by 0x4B3439C: FontConfig::FindFont(char const*, bool, bool) (unixfontconfig.cpp:49)<br>
==15388==    by 0x4B3522E: SIInterface::SI_CreateFont(MM_Object*, FI_FontInfo const*, void**) (SITextDrawImpl.cpp:324)<br>==15388==    by 0x625BDE7: HostCallback2&lt;unsigned short, FI_FontInfo const*, void**&gt;::Invoke(void*) (si_wrappers.cpp:130)<br>
 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------<br><br>284 bytes in 7 blocks are possibly lost in loss record 103 of 160<br>
==15388==    at 0x4024F20: malloc (vg_replace_malloc.c:236)<br>==15388==    by 0x4C667A6: FcStrStaticName (fcpat.c:1065)<br>==15388==    by 0x4C678AF: FcValueSave (fcpat.c:101)<br>==15388==    by 0x4C679B2: FcPatternObjectAddWithBinding (fcpat.c:485)<br>
==15388==    by 0x4C681CB: FcPatternObjectAdd (fcpat.c:537)<br>==15388==    by 0x4C64287: FcFontRenderPrepare (fcmatch.c:420)<br>==15388==    by 0x4C644C7: FcFontMatch (fcmatch.c:564)<br>==15388==    by 0x4B344C4: FontConfig::Find(char const*, bool, bool) (unixfontconfig.cpp:75)<br>
==15388==    by 0x4B3439C: FontConfig::FindFont(char const*, bool, bool) (unixfontconfig.cpp:49)<br>==15388==    by 0x4B3522E: SIInterface::SI_CreateFont(MM_Object*, FI_FontInfo const*, void**) (SITextDrawImpl.cpp:324)<br>
==15388==    by 0x625BDE7: HostCallback2&lt;unsigned short, FI_FontInfo const*, void**&gt;::Invoke(void*) (si_wrappers.cpp:130)<br>==15388==    by 0x63A1331: CorePlayer::InvokeHostCallback(VirtualHostCallback&amp;) (splayer.cpp:12240)<br>
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------<br><br>Can u help me out to fix this bug as soon as possible..<br>
<br>Archana..<br><br><br><br><div class="gmail_quote">On Tue, May 15, 2012 at 4:25 PM, Akira TAGOH <span dir="ltr">&lt;<a href="mailto:akira@tagoh.org" target="_blank">akira@tagoh.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Although I can&#39;t reproduce that problem here, do you see same error<br>
with fc-match say? I&#39;m suspecting that that code may not call<br>
FcPatternDestroy() for the result of FcFontMatch().<br>
<div class="HOEnZb"><div class="h5"><br>
On Tue, May 15, 2012 at 6:45 PM, Archana :) &lt;<a href="mailto:archnavnr24@gmail.com">archnavnr24@gmail.com</a>&gt; wrote:<br>
&gt; Hey sorry i unkowningly have sent u the previous log.. after fontconfig<br>
&gt; updation below is the valgrind error..<br>
&gt;<br>
&gt; 42,500 (15,360 direct, 27,140 indirect) bytes in 40 blocks are definitely<br>
&gt; lost in loss record 162 of 165<br>
&gt; ==12490==    at 0x4025016: realloc (vg_replace_malloc.c:525)<br>
&gt; ==12490==    by 0x4C67016: FcPatternObjectInsertElt (fcpat.c:358)<br>
&gt; ==12490==    by 0x4C54911: FcConfigPatternAdd (fccfg.c:1355)<br>
&gt; ==12490==    by 0x4C55E85: FcConfigSubstituteWithPat (fccfg.c:1559)<br>
&gt; ==12490==    by 0x4C64310: FcFontRenderPrepare (fcmatch.c:433)<br>
&gt; ==12490==    by 0x4C644C7: FcFontMatch (fcmatch.c:564)<br>
&gt; ==12490==    by 0x4B344C4: FontConfig::Find(char const*, bool, bool)<br>
&gt; (unixfontconfig.cpp:75)<br>
&gt; ==12490==    by 0x4B3439C: FontConfig::FindFont(char const*, bool, bool)<br>
&gt; (unixfontconfig.cpp:49)<br>
&gt; ==12490==    by 0x4B3522E: SIInterface::SI_CreateFont(MM_Object*,<br>
&gt; FI_FontInfo const*, void**) (SITextDrawImpl.cpp:324)<br>
&gt; ==12490==    by 0x625BDE7: HostCallback2&lt;unsigned short, FI_FontInfo const*,<br>
&gt; void**&gt;::Invoke(void*) (si_wrappers.cpp:130)<br>
&gt; ==12490==    by 0x63A1331:<br>
&gt; CorePlayer::InvokeHostCallback(VirtualHostCallback&amp;) (splayer.cpp:12240)<br>
&gt;<br>
&gt; Archana.<br>
&gt;<br>
&gt;<br>
&gt; On Tue, May 15, 2012 at 2:35 PM, Akira TAGOH &lt;<a href="mailto:akira@tagoh.org">akira@tagoh.org</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt; That looks like you failed to update. /usr/lib/libfontconfig.so.1.4.4<br>
&gt;&gt; isn&#39;t 2.9.0 anyway. it should be /usr/lib/libfontconfig.so.1.5.0 if<br>
&gt;&gt; you install it properly.<br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Tue, May 15, 2012 at 4:08 PM, Archana :) &lt;<a href="mailto:archnavnr24@gmail.com">archnavnr24@gmail.com</a>&gt; wrote:<br>
&gt;&gt; &gt; Hi ,<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; I have upgraded  fontconfig to 2.9.0. and in fontconfig makefile its<br>
&gt;&gt; &gt; compiling with &#39; -g &#39; option..<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; ./configure --sysconfdir=/etc --prefix=/usr --mandir=/usr/share/man<br>
&gt;&gt; &gt; make<br>
&gt;&gt; &gt; make install<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Still  showing the same issue as<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; 53,200 (19,200 direct, 34,000 indirect) bytes in 50 blocks are<br>
&gt;&gt; &gt; definitely<br>
&gt;&gt; &gt; lost in loss record 155 of 158<br>
&gt;&gt; &gt; ==11740==    at 0x4025016: realloc (vg_replace_malloc.c:525)<br>
&gt;&gt; &gt; ==11740==    by 0x4C66966: ??? (in /usr/lib/libfontconfig.so.1.4.4)<br>
&gt;&gt; &gt; ==11740==    by 0x4C547A1: ??? (in /usr/lib/libfontconfig.so.1.4.4)<br>
&gt;&gt; &gt; ==11740==    by 0x4C55C57: FcConfigSubstituteWithPat (in<br>
&gt;&gt; &gt; /usr/lib/libfontconfig.so.1.4.4)<br>
&gt;&gt; &gt; ==11740==    by 0x4C63DC0: FcFontRenderPrepare (in<br>
&gt;&gt; &gt; /usr/lib/libfontconfig.so.1.4.4)<br>
&gt;&gt; &gt; ==11740==    by 0x4C63F09: FcFontMatch (in<br>
&gt;&gt; &gt; /usr/lib/libfontconfig.so.1.4.4)<br>
&gt;&gt; &gt; ==11740==    by 0x4B344B6: FontConfig::Find(char const*, bool, bool)<br>
&gt;&gt; &gt; (unixfontconfig.cpp:74)<br>
&gt;&gt; &gt; ==11740==    by 0x4B3439C: FontConfig::FindFont(char const*, bool, bool)<br>
&gt;&gt; &gt; (unixfontconfig.cpp:49)<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Archana.<br>
&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; Fontconfig mailing list<br>
&gt;&gt; &gt; <a href="mailto:Fontconfig@lists.freedesktop.org">Fontconfig@lists.freedesktop.org</a><br>
&gt;&gt; &gt; <a href="http://lists.freedesktop.org/mailman/listinfo/fontconfig" target="_blank">http://lists.freedesktop.org/mailman/listinfo/fontconfig</a><br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Akira TAGOH<br>
&gt;<br>
&gt;<br>
<br>
<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
Akira TAGOH<br>
</font></span></blockquote></div><br>