summaryrefslogtreecommitdiff
path: root/atspi/atspi-misc.c
diff options
context:
space:
mode:
authorMike Gorse <mgorse@suse.com>2012-09-17 11:16:08 -0500
committerMike Gorse <mgorse@suse.com>2012-09-17 11:16:08 -0500
commit3c21b42d31fd19c28bca9417c66bbd5c9fa4c6f8 (patch)
treec8ef435880514954006d09bcd14ab7e8d1a5852e /atspi/atspi-misc.c
parent5587b154a1f01f43924e049c33caffbeea26de48 (diff)
downloadat-spi2-core-3c21b42d31fd19c28bca9417c66bbd5c9fa4c6f8.tar.gz
Don't check for NULL when calling _atspi_application_new
g_object_new will error out rather than return NULL when out of memory, so no need to check its return value.
Diffstat (limited to 'atspi/atspi-misc.c')
-rw-r--r--atspi/atspi-misc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/atspi/atspi-misc.c b/atspi/atspi-misc.c
index 0366fc45..fa7ca643 100644
--- a/atspi/atspi-misc.c
+++ b/atspi/atspi-misc.c
@@ -205,7 +205,6 @@ get_application (const char *bus_name)
if (!bus_name_dup) return NULL;
// TODO: change below to something that will send state-change:defunct notification if necessary */
app = _atspi_application_new (bus_name);
- if (!app) return NULL;
app->hash = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, g_object_unref);
app->bus = dbus_connection_ref (_atspi_bus ());
gettimeofday (&app->time_added, NULL);