[kaffe] CVS kaffe (robilad): Fixed refernence leak in gtk peer

Kaffe CVS cvs-commits at kaffe.org
Sat May 21 12:08:08 PDT 2005


PatchSet 6567 
Date: 2005/05/21 19:03:06
Author: robilad
Branch: HEAD
Tag: (none) 
Log:
Fixed refernence leak in gtk peer

2005-05-21  Dalibor Topic  <robilad at kaffe.org>

        * libraries/clib/awt/classpath-gtk/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c
        (area_updated): Delete jpixels reference after use to avoid wasting references.

Members: 
	ChangeLog:1.4094->1.4095 
	libraries/clib/awt/classpath-gtk/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c:1.8->1.9 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4094 kaffe/ChangeLog:1.4095
--- kaffe/ChangeLog:1.4094	Sat May 21 15:30:05 2005
+++ kaffe/ChangeLog	Sat May 21 19:03:06 2005
@@ -1,5 +1,11 @@
 2005-05-21  Dalibor Topic  <robilad at kaffe.org>
 
+	* libraries/clib/awt/classpath-gtk/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c
+	(area_updated): Delete jpixels reference after use to avoid wasting references.
+	
+
+2005-05-21  Dalibor Topic  <robilad at kaffe.org>
+
 	Resynced with GNU Classpath.
 
 	2005-05-20  Audrius Meskauskas, <AudriusA at Bioinformatics.org>
Index: kaffe/libraries/clib/awt/classpath-gtk/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c
diff -u kaffe/libraries/clib/awt/classpath-gtk/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c:1.8 kaffe/libraries/clib/awt/classpath-gtk/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c:1.9
--- kaffe/libraries/clib/awt/classpath-gtk/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c:1.8	Mon Mar 21 14:01:06 2005
+++ kaffe/libraries/clib/awt/classpath-gtk/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c	Sat May 21 19:03:11 2005
@@ -154,6 +154,7 @@
 			  (jint) width, (jint) height,
 			  jpixels,
 			  stride_pixels);
+  (*env)->DeleteLocalRef(env, jpixels);
   gdk_threads_enter ();
 }
 




More information about the kaffe mailing list