summaryrefslogtreecommitdiff
path: root/src/bin/e_msgbus.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>2013-01-23 10:10:18 +0000
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>2013-01-23 10:10:18 +0000
commit69dfb7c74c17edfaaad2edd87251424d14c26ae7 (patch)
tree461ccdce957c55bbaa6602b61e05eaafae233c6e /src/bin/e_msgbus.c
parent5237b25e3474d28cb8d3132fab2b3b5c077efc26 (diff)
downloadenlightenment-69dfb7c74c17edfaaad2edd87251424d14c26ae7.tar.gz
fix edbus leak
SVN revision: 83144
Diffstat (limited to 'src/bin/e_msgbus.c')
-rw-r--r--src/bin/e_msgbus.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/bin/e_msgbus.c b/src/bin/e_msgbus.c
index 1d005e0db4..f103e6b252 100644
--- a/src/bin/e_msgbus.c
+++ b/src/bin/e_msgbus.c
@@ -391,16 +391,15 @@ _e_msgbus_profile_delete_cb(const EDBus_Service_Interface *iface __UNUSED__,
const EDBus_Message *msg)
{
char *profile;
- EDBus_Message *reply = edbus_message_method_return_new(msg);
if (!edbus_message_arguments_get(msg, "s", &profile))
- return reply;
+ return edbus_message_method_return_new(msg);
if (!strcmp(e_config_profile_get(), profile))
return edbus_message_error_new(msg,
"org.enlightenment.DBus.InvalidArgument",
"Can't delete active profile");
e_config_profile_del(profile);
- return reply;
+ return edbus_message_method_return_new(msg);
}
/* Window handlers */