[pango] Fix weak pointer leak
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango] Fix weak pointer leak
- Date: Fri, 5 Dec 2014 02:26:11 +0000 (UTC)
commit 92a4e7bb6d767b7e5ba4826738e0f9e068b4b9f9
Author: Max <verem m1stereo tv>
Date: Wed Oct 22 07:07:00 2014 +0000
Fix weak pointer leak
This patch fixes a leak with lost weak references in fontset.
https://bugzilla.gnome.org/show_bug.cgi?id=738868
pango/pangowin32.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/pango/pangowin32.c b/pango/pangowin32.c
index be64f7d..30b803a 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]