at-spi r1134 - in trunk: . cspi
- From: liyuan svn gnome org
- To: svn-commits-list gnome org
- Subject: at-spi r1134 - in trunk: . cspi
- Date: Fri, 5 Dec 2008 06:39:44 +0000 (UTC)
Author: liyuan
Date: Fri Dec 5 06:39:43 2008
New Revision: 1134
URL: http://svn.gnome.org/viewvc/at-spi?rev=1134&view=rev
Log:
2008-12-05 Li Yuan <li yuan sun com>
* cspi/spi_main.c: (cspi_object_unref):
Bug #563313. Decrease the ref count after the object has been
removed to avoid crash.
Modified:
trunk/ChangeLog
trunk/cspi/spi_main.c
Modified: trunk/cspi/spi_main.c
==============================================================================
--- trunk/cspi/spi_main.c (original)
+++ trunk/cspi/spi_main.c Fri Dec 5 06:39:43 2008
@@ -331,9 +331,10 @@
}
g_return_if_fail (accessible->ref_count > 0);
- if (--accessible->ref_count == 0)
+ if (accessible->ref_count == 1)
{
g_hash_table_remove (cspi_get_live_refs (), accessible->objref);
+ accessible->ref_count--;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]