Do not unref eldbus_message after sending the message 80/59580/1
authorMinJeong Kim <minjjj.kim@samsung.com>
Tue, 16 Feb 2016 12:11:44 +0000 (21:11 +0900)
committerMinJeong Kim <minjjj.kim@samsung.com>
Tue, 16 Feb 2016 12:15:38 +0000 (21:15 +0900)
After eldbus_message is sent with no callbacks, the message is unrefed
inside of eldbus library. So it doesn't need to unref the message
manually.

Change-Id: I0ca545ce9f14f7895bd8337bbf0ee4c8513ad673
Signed-off-by: MinJeong Kim <minjjj.kim@samsung.com>
src/e_mod_processmgr.c

index 31af2b2..9b350b3 100644 (file)
@@ -430,10 +430,7 @@ _e_processmgr_send_pid_action(int pid, E_ProcessMgr_Action act)
 
    // send the message
    if (!eldbus_connection_send(conn, msg, NULL, NULL, -1))
-     {
-        eldbus_message_unref(msg);
-        return;
-     }
+     return;
 
    eldbus_message_unref(msg);
 }