free the ATSU style and utf16 string at the end.
authorKristian Rietveld <kris@imendio.com>
Thu, 21 Feb 2008 22:51:28 +0000 (22:51 +0000)
committerKristian Rietveld <kristian@src.gnome.org>
Thu, 21 Feb 2008 22:51:28 +0000 (22:51 +0000)
2008-02-21  Kristian Rietveld  <kris@imendio.com>

* modules/basic/basic-atsui.c (basic_engine_shape): free the
ATSU style and utf16 string at the end.

svn path=/trunk/; revision=2571

ChangeLog
modules/basic/basic-atsui.c

index 0a9f242..8521763 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-02-21  Kristian Rietveld  <kris@imendio.com>
+
+       * modules/basic/basic-atsui.c (basic_engine_shape): free the
+       ATSU style and utf16 string at the end.
+
 2008-02-17  Behdad Esfahbod  <behdad@gnome.org>
 
        Bug 517083 – pango modules: wrong fallback adding code?
index b175be3..fac2539 100644 (file)
@@ -163,7 +163,10 @@ basic_engine_shape (PangoEngineShape    *engine,
   ATSUDirectReleaseLayoutDataArrayPtr (NULL, kATSUDirectDataLayoutRecordATSLayoutRecordCurrent,
                                       (void *)&layout_records);
 
+  ATSUDisposeStyle(style);
   ATSUDisposeTextLayout (text_layout);
+
+  g_free (utf16);
 }
 
 static void