summaryrefslogtreecommitdiff
path: root/pango/pangowin32.c
diff options
context:
space:
mode:
authorMax <verem@m1stereo.tv>2014-10-22 07:07:00 +0000
committerMatthias Clasen <mclasen@redhat.com>2014-12-04 21:24:06 -0500
commit92a4e7bb6d767b7e5ba4826738e0f9e068b4b9f9 (patch)
tree395b0424796cba14dba407a573c964bfe4e159db /pango/pangowin32.c
parent91024c84f73ddefb4bde174e0a1689b2d136a9b6 (diff)
downloadpango-92a4e7bb6d767b7e5ba4826738e0f9e068b4b9f9.tar.gz
Fix weak pointer leak
This patch fixes a leak with lost weak references in fontset. https://bugzilla.gnome.org/show_bug.cgi?id=738868
Diffstat (limited to 'pango/pangowin32.c')
-rw-r--r--pango/pangowin32.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/pango/pangowin32.c b/pango/pangowin32.c
index be64f7dc..30b803a0 100644
--- a/pango/pangowin32.c
+++ b/pango/pangowin32.c
@@ -845,7 +845,10 @@ pango_win32_font_finalize (GObject *object)
fontmap = g_weak_ref_get ((GWeakRef *) &win32font->fontmap);
if (fontmap)
+ {
+ g_object_remove_weak_pointer (G_OBJECT (win32font->fontmap), (gpointer *) (gpointer) &win32font->fontmap);
g_object_unref (fontmap);
+ }
G_OBJECT_CLASS (_pango_win32_font_parent_class)->finalize (object);
}