summaryrefslogtreecommitdiff
path: root/pango/pango-context.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2000-07-21 13:59:36 +0000
committerOwen Taylor <otaylor@src.gnome.org>2000-07-21 13:59:36 +0000
commita084f42c0e920e2ac91383b8d98ff54f339d17ac (patch)
treecd2ae4cd9d49439019d4dddda005c02523d26c89 /pango/pango-context.c
parent1f53784fdae609da25c593d9b99ba830c6513298 (diff)
downloadpango-a084f42c0e920e2ac91383b8d98ff54f339d17ac.tar.gz
Free buffer strings.
Fri Jul 21 09:59:10 2000 Owen Taylor <otaylor@redhat.com> * pango/modules.c (process_module_file): Free buffer strings. * pango/pangox-fontmap.c (pango_x_real_get_coverage_win): Add caching of coverage maps on a persistant subwindow of the root window. This window contains a property for each "lang|xlfd,xlfd" which is the result of pango_coverage_to_bytes. * pango/pango-context.c (pango_context_finalize): Free the font description. * pango/pango-coverage.c (pango_coverage_to/from_bytes): Added functions to covert a PangoCoverage structure too and from a flat block of bytes. * configure.in (X_LIBS): Add a check to detect fribidi being compiled against glib-1.2.x.
Diffstat (limited to 'pango/pango-context.c')
-rw-r--r--pango/pango-context.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/pango/pango-context.c b/pango/pango-context.c
index 11e1ecbc..cf6d3b42 100644
--- a/pango/pango-context.c
+++ b/pango/pango-context.c
@@ -19,8 +19,10 @@
* Boston, MA 02111-1307, USA.
*/
-#include <pango/pango-context.h>
+#include <string.h>
+
#include <fribidi/fribidi.h>
+#include <pango/pango-context.h>
#include "iconv.h"
#include "pango-modules.h"
@@ -125,6 +127,8 @@ pango_context_finalize (GObject *object)
g_slist_foreach (context->font_maps, (GFunc)g_object_unref, NULL);
g_slist_free (context->font_maps);
+
+ pango_font_description_free (context->font_desc);
G_OBJECT_CLASS (parent_class)->finalize (object);
}