[at-spi2-atk] Don't free an event name until we're done with it
- From: Mike Gorse <mgorse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [at-spi2-atk] Don't free an event name until we're done with it
- Date: Wed, 8 Dec 2010 18:30:21 +0000 (UTC)
commit 0bfdafe643cb89584a315a18435558b5e4c4c37f
Author: Mike Gorse <mgorse novell com>
Date: Wed Dec 8 13:30:25 2010 -0500
Don't free an event name until we're done with it
atk-adaptor/event.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/atk-adaptor/event.c b/atk-adaptor/event.c
index 503e454..9e6e83e 100644
--- a/atk-adaptor/event.c
+++ b/atk-adaptor/event.c
@@ -417,7 +417,6 @@ emit_event (AtkObject *obj,
*/
cname = signal_name_to_dbus (major);
sig = dbus_message_new_signal(path, klass, cname);
- g_free(cname);
dbus_message_iter_init_append(sig, &iter);
@@ -432,6 +431,8 @@ emit_event (AtkObject *obj,
if (g_strcmp0 (cname, "ChildrenChanged") != 0)
spi_object_lease_if_needed (G_OBJECT (obj));
+
+ g_free(cname);
}
/*---------------------------------------------------------------------------*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]