diff options
author | Mike Gorse <mgorse@novell.com> | 2010-03-14 08:49:24 -0400 |
---|---|---|
committer | Mike Gorse <mgorse@novell.com> | 2010-03-14 08:49:24 -0400 |
commit | 1679785bff78813119a9c55c2e3ce2154dafb473 (patch) | |
tree | 38e382bde2eed525f46775fbf6746cdd1b428152 /droute/droute.c | |
parent | c0a05e32cc6569d245747d192352ce2be3b4cddd (diff) | |
download | at-spi2-atk-1679785bff78813119a9c55c2e3ce2154dafb473.tar.gz |
Avoid calling g_error and aborting the application on some errors
Diffstat (limited to 'droute/droute.c')
-rw-r--r-- | droute/droute.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/droute/droute.c b/droute/droute.c index f0b4f00..e2534e1 100644 --- a/droute/droute.c +++ b/droute/droute.c @@ -174,7 +174,10 @@ droute_add_one (DRouteContext *cnx, registered = dbus_connection_register_object_path (cnx->bus, path, &droute_vtable, new_path); if (!registered) - oom(); + { + path_free (new_path, NULL); + return NULL; + } g_ptr_array_add (cnx->registered_paths, new_path); return new_path; |