[pango] Fix leak with non-mmapped fonts



commit 8e9d153733cac83bfc8ce0c068d2af455d0e9a76
Author: Behdad Esfahbod <behdad behdad org>
Date:   Tue Nov 3 17:11:53 2009 -0500

    Fix leak with non-mmapped fonts

 pango/pango-ot-info.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/pango/pango-ot-info.c b/pango/pango-ot-info.c
index f4f4cee..d6fa0da 100644
--- a/pango/pango-ot-info.c
+++ b/pango/pango-ot-info.c
@@ -112,7 +112,7 @@ _get_table  (hb_tag_t tag, void *user_data)
 
   return hb_blob_create ((const char *) buffer, length,
 			 HB_MEMORY_MODE_WRITABLE,
-			 g_free, NULL);
+			 g_free, buffer);
 }
 
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]