[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] fix double unreferencing bug in GdkFontPeer.c
From: |
Andreas Tobler |
Subject: |
[cp-patches] fix double unreferencing bug in GdkFontPeer.c |
Date: |
Sat, 17 Sep 2005 22:42:44 +0200 |
User-agent: |
Mozilla Thunderbird 1.0.5 (Macintosh/20050711) |
Hello,
this patchlet fixes a bug which tried to unref pfont->font twice.
Andreas
2005-09-17 Andreas Tobler <address@hidden>
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontPeer.c
(Java_gnu_java_awt_peer_gtk_GdkFontPeer_dispose): Fix double
unreferencing pfont->font. Unref pfont->layout instead.
Index: gnu_java_awt_peer_gtk_GdkFontPeer.c
===================================================================
RCS file:
/cvsroot/classpath/classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontPeer.c,v
retrieving revision 1.9
diff -u -r1.9 gnu_java_awt_peer_gtk_GdkFontPeer.c
--- gnu_java_awt_peer_gtk_GdkFontPeer.c 18 Aug 2005 03:15:15 -0000 1.9
+++ gnu_java_awt_peer_gtk_GdkFontPeer.c 17 Sep 2005 20:39:21 -0000
@@ -98,7 +98,7 @@
pfont = (struct peerfont *)NSA_DEL_FONT_PTR (env, self);
g_assert (pfont != NULL);
if (pfont->layout != NULL)
- g_object_unref (pfont->font);
+ g_object_unref (pfont->layout);
if (pfont->font != NULL)
g_object_unref (pfont->font);
if (pfont->ctx != NULL)
- [cp-patches] fix double unreferencing bug in GdkFontPeer.c,
Andreas Tobler <=