From: Joe Neeman Date: Tue, 12 Dec 2006 08:26:26 +0000 (+0200) Subject: Fix small memory leak. X-Git-Tag: release/2.11.2-1~6^2~3 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=675aa55968c5d740014a1083601dca6619ac01c2;p=lilypond.git Fix small memory leak. --- diff --git a/lily/open-type-font.cc b/lily/open-type-font.cc index 45ae95cce7..d34654e770 100644 --- a/lily/open-type-font.cc +++ b/lily/open-type-font.cc @@ -82,8 +82,10 @@ get_otf_table (FT_Face face, string tag) { FT_ULong len; FT_Byte *tab = load_table (tag.c_str (), face, &len); + string ret ((char const*) tab, len); + free (tab); - return string ((char const*) tab, len); + return ret; } FT_Face