From 7defe4e532e48dc2d20ae3844e3791b59e0ca29d Mon Sep 17 00:00:00 2001 From: padraigo Date: Fri, 14 May 2004 08:31:46 +0000 Subject: [PATCH] 2004-05-14 Padraig O'Briain * cspi/spi_main.c (cspi_object_unref): Add check that reference count is positive. This should make it easier to detect inapprorpiate unref calls. git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@665 e2bd861d-eb25-0410-b326-f6ed22b6b98c --- ChangeLog | 6 ++++++ cspi/spi_main.c | 1 + 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index b8e8452..851cbc8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-05-14 Padraig O'Briain + + * cspi/spi_main.c (cspi_object_unref): Add check that reference count + is positive. This should make it easier to detect inapprorpiate unref + calls. + 2004-05-11 James Henstridge * configure.in: remove GNOME_PLATFORM_GNOME_2 macro, which is a diff --git a/cspi/spi_main.c b/cspi/spi_main.c index f5b385d..d4aa993 100644 --- a/cspi/spi_main.c +++ b/cspi/spi_main.c @@ -330,6 +330,7 @@ cspi_object_unref (Accessible *accessible) return; } + g_return_if_fail (accessible->ref_count > 0); if (--accessible->ref_count == 0) { g_hash_table_remove (cspi_get_live_refs (), accessible->objref); -- 2.7.4