pango r2726 - in trunk: . pango
- From: behdad svn gnome org
- To: svn-commits-list gnome org
- Subject: pango r2726 - in trunk: . pango
- Date: Mon, 6 Oct 2008 16:09:54 +0000 (UTC)
Author: behdad
Date: Mon Oct 6 16:09:54 2008
New Revision: 2726
URL: http://svn.gnome.org/viewvc/pango?rev=2726&view=rev
Log:
2008-10-06 Behdad Esfahbod <behdad gnome org>
Bug 555219 â Memory leak when using pango_layout_iter_copy
Patch from Falk Rohsiepe
* pango/pango-layout.c (pango_layout_iter_copy): Use gslice, not
memdup. Oops!
Modified:
trunk/ChangeLog
trunk/pango/pango-layout.c
Modified: trunk/pango/pango-layout.c
==============================================================================
--- trunk/pango/pango-layout.c (original)
+++ trunk/pango/pango-layout.c Mon Oct 6 16:09:54 2008
@@ -5445,8 +5445,7 @@
for (l = iter->line_extents; l; l = l->next)
{
new->line_extents = g_slist_prepend (new->line_extents,
- g_memdup (l->data,
- sizeof (Extents)));
+ g_slice_dup (Extents, l->data));
if (l == iter->line_extents_link)
new->line_extents_link = new->line_extents;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]