[PATCH] fix for at-spi



Hello,

browsing through the source code for at-spi, I came across a small bug
in accessible_finalize. Patch is attached

//andersca
andersca gnu org



Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/at-spi/ChangeLog,v
retrieving revision 1.4
diff -u -r1.4 ChangeLog
--- ChangeLog	2001/07/27 10:18:56	1.4
+++ ChangeLog	2001/07/28 11:38:56
@@ -1,3 +1,8 @@
+2001-07-28  Anders Carlsson  <andersca gnome org>
+
+	* libspi/accessible.c (accessible_object_finalize): Change
+	g_free to g_object_unref since the AtkObject is a GObject.
+
 2001-07-27  Michael Meeks  <michael ximian com>
 
 	* po/Makefile.in.in: remove autogenerated file from CVS.
Index: libspi/accessible.c
===================================================================
RCS file: /cvs/gnome/at-spi/libspi/accessible.c,v
retrieving revision 1.3
diff -u -r1.3 accessible.c
--- libspi/accessible.c	2001/07/27 10:18:58	1.3
+++ libspi/accessible.c	2001/07/28 11:38:57
@@ -58,7 +58,7 @@
         Accessible *accessible = ACCESSIBLE (object);
 
         printf("accessible_object_finalize called\n");
-        g_free (accessible->atko);
+        g_object_unref (accessible->atko);
 
         printf("atko freed, calling parent finalize\n");
         accessible_parent_class->finalize (object);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]