From: billh Date: Mon, 25 Sep 2006 10:53:02 +0000 (+0000) Subject: Don't attempt to access dead/defunct application when marshalling X-Git-Tag: AT_SPI2_CORE_0_1_3~417 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=92d0ed0389bb83882127099d9089b08f79a2cbf0;p=platform%2Fupstream%2Fat-spi2-core.git Don't attempt to access dead/defunct application when marshalling data for [Desktop]children-changed:remove[App] event. Bug #353226. git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@858 e2bd861d-eb25-0410-b326-f6ed22b6b98c --- diff --git a/ChangeLog b/ChangeLog index 8ec5930..97307b8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2006-09-25 Bill Haneman + + * registryd/registry.c: + (desktop_remove_application): Don't pass a ref to the + dead application with the event, since it's probably + defunct and will cause SEGV if we try to unref, + extract app name, etc. + Bug #353226. + 2006-09-20 Bill Haneman Patch from Neo Liu , diff --git a/registryd/registry.c b/registryd/registry.c index d49de13..c0e36bd 100644 --- a/registryd/registry.c +++ b/registryd/registry.c @@ -135,7 +135,7 @@ desktop_remove_application (SpiDesktop *desktop, { BonoboObject *registry = BONOBO_OBJECT (data); Accessibility_Event e; - Accessibility_Accessible a; + /* Accessibility_Accessible a; FIXME */ CORBA_Environment ev; CORBA_exception_init (&ev); @@ -144,16 +144,16 @@ desktop_remove_application (SpiDesktop *desktop, e.source = BONOBO_OBJREF (desktop); e.detail1 = index; e.detail2 = 0; + /* FIXME a = Accessibility_Accessible_getChildAtIndex (BONOBO_OBJREF (desktop), index, &ev); - /* FIXME spi_init_any_object (&e.any_data, a); */ spi_init_any_nil (&e.any_data, e.source, Accessibility_ROLE_DESKTOP_FRAME, ""); - Accessibility_Accessible_unref (a, &ev); + /* Accessibility_Accessible_unref (a, &ev); */ Accessibility_Registry_notifyEvent (BONOBO_OBJREF (registry), &e, &ev); Accessibility_Desktop_unref (e.source, &ev);