plug leak in lime_font_get_family_name
This commit is contained in:
@@ -292,7 +292,10 @@ namespace lime {
|
|||||||
|
|
||||||
#ifdef LIME_FREETYPE
|
#ifdef LIME_FREETYPE
|
||||||
Font *font = (Font*)(intptr_t)fontHandle;
|
Font *font = (Font*)(intptr_t)fontHandle;
|
||||||
return alloc_wstring (font->GetFamilyName ());
|
wchar_t *name = font->GetFamilyName ();
|
||||||
|
value result = alloc_wstring (name);
|
||||||
|
delete name;
|
||||||
|
return result;
|
||||||
#else
|
#else
|
||||||
return 0;
|
return 0;
|
||||||
#endif
|
#endif
|
||||||
@@ -1377,4 +1380,4 @@ extern "C" int lime_register_prims () {
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user