]> git.saurik.com Git - wxWidgets.git/commitdiff
[wxGTK2] Plug memory leak in wxFontEnumerator::EnumerateFacenames()
authorMart Raudsepp <leio@gentoo.org>
Mon, 22 Aug 2005 20:25:32 +0000 (20:25 +0000)
committerMart Raudsepp <leio@gentoo.org>
Mon, 22 Aug 2005 20:25:32 +0000 (20:25 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35267 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/unix/fontenum.cpp

index 4ba3e6512d8da4a2903d58064218a170c1ab41b9..3b9be3e2cb62c030f41c4372b8373ebc6467b954 100644 (file)
@@ -52,7 +52,7 @@ cmp_families (const void *a, const void *b)
 {
   const char *a_name = pango_font_family_get_name (*(PangoFontFamily **)a);
   const char *b_name = pango_font_family_get_name (*(PangoFontFamily **)b);
-  
+
   return g_utf8_collate (a_name, b_name);
 }
 
@@ -90,6 +90,7 @@ bool wxFontEnumerator::EnumerateFacenames(wxFontEncoding encoding,
                 OnFacename(wxString(name, wxConvUTF8));
             }
         }
+        g_free(families);
     }
     
     return TRUE;