From dc697f84db55bbd89d2e4c165a3494c1bdad8a7e Mon Sep 17 00:00:00 2001 From: padraigo Date: Wed, 5 Mar 2003 17:24:59 +0000 Subject: [PATCH] 2003-03-05 Padraig O'Briain * cspi/spi_event.c (cspi_internal_event_get_text): Change g_strdup to CORBA_String_dup (bug #105291) * test/event-listener-test.c (report_text_event): Add call to SPI_freeString. git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@408 e2bd861d-eb25-0410-b326-f6ed22b6b98c --- ChangeLog | 8 ++++++++ cspi/spi_event.c | 2 +- test/event-listener-test.c | 1 + 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 37325db..1229b45 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2003-03-05 Padraig O'Briain + + * cspi/spi_event.c (cspi_internal_event_get_text): Change + g_strdup to CORBA_String_dup (bug #105291) + + * test/event-listener-test.c (report_text_event): Add call to + SPI_freeString. + 2003-02-28 Bill Haneman * registryd/deviceeventcontroller.c: diff --git a/cspi/spi_event.c b/cspi/spi_event.c index 27ac522..0ebfcaf 100644 --- a/cspi/spi_event.c +++ b/cspi/spi_event.c @@ -338,7 +338,7 @@ cspi_internal_event_get_text (const InternalEvent *e) any = (CORBA_any *) e->data; if (CORBA_TypeCode_equivalent (any->_type, TC_CORBA_string, NULL)) { - return g_strdup (* (char **) any->_value); + return CORBA_string_dup (* (char **) any->_value); } else { diff --git a/test/event-listener-test.c b/test/event-listener-test.c index ce9f273..15aff94 100644 --- a/test/event-listener-test.c +++ b/test/event-listener-test.c @@ -292,6 +292,7 @@ report_text_event (const AccessibleEvent *event, void *user_data) if (s) SPI_freeString (s); s = AccessibleTextChangedEvent_getChangeString (event); fprintf (stderr, "context string %s\n", (s) ? s : ""); + SPI_freeString (s); } SPIBoolean -- 2.7.4