Home » U++ Library support » U++ Library : Other (not classified elsewhere) » [FIXED] Memory leak in FreeType.
[FIXED] Memory leak in FreeType. [message #40001] |
Fri, 24 May 2013 23:15 |
|
Klugier
Messages: 1085 Registered: September 2012 Location: Poland, Kraków
|
Senior Contributor |
|
|
Hello,
I have found memory leak in FreeType code. What's wrong this time? Ultimate++ never closes FreeType library on POSIX.
I have written simply function (FontFc.cpp - line 31):
bool sDoneFt()
{
if(sFTlib)
return FT_Done_FreeType(sFTlib) == 0;
}
This function should release major part of memory that was allocated by FreeType. I have tested it using following EXITBLOCK:
But, there is one problem. I don't know where we need to invoke this function in upp library. I have looked at Font.cpp, but I can't find good place there.
Sincerely,
Klugier
U++ - one framework to rule them all.
[Updated on: Thu, 27 June 2013 21:19] Report message to a moderator
|
|
|
|
Goto Forum:
Current Time: Fri Dec 13 23:37:40 CET 2024
Total time taken to generate the page: 0.03500 seconds
|