g_object_new will error out rather than return NULL when out of memory,
so no need to check its return value.
AtspiApplication *application;
application = g_object_new (ATSPI_TYPE_APPLICATION, NULL);
- if (application)
- {
- application->bus_name = g_strdup (bus_name);
- application->root = NULL;
- }
+ application->bus_name = g_strdup (bus_name);
+ application->root = NULL;
return application;
}
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);