summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gorse <mgorse@novell.com>2011-09-19 15:43:42 -0500
committerMike Gorse <mgorse@novell.com>2011-09-19 15:43:42 -0500
commit24ccba3a9caaa527e0f9f60f24641c10005afc21 (patch)
tree46eef5fa131f1121b624c4041d8975c5594bf3f8
parenta50504d2cbe1e1d6db3d69e8009ab1a28748fb9e (diff)
downloadat-spi2-core-24ccba3a9caaa527e0f9f60f24641c10005afc21.tar.gz
Avoid dereferencing a null message
-rw-r--r--atspi/atspi-event-listener.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/atspi/atspi-event-listener.c b/atspi/atspi-event-listener.c
index f0a4ad8f..83c9ae06 100644
--- a/atspi/atspi-event-listener.c
+++ b/atspi/atspi-event-listener.c
@@ -693,7 +693,8 @@ atspi_event_listener_deregister_from_callback (AtspiEventListenerCB callback,
return FALSE;
dbus_message_append_args (message, DBUS_TYPE_STRING, &event_type, DBUS_TYPE_INVALID);
reply = _atspi_dbus_send_with_reply_and_block (message, error);
- dbus_message_unref (reply);
+ if (reply)
+ dbus_message_unref (reply);
listener_entry_free (e);
}