zmike pushed a commit to branch efl-1.22.

http://git.enlightenment.org/core/efl.git/commit/?id=ec1b51ef3436d65c33f0b47a13a64a806675a1a7

commit ec1b51ef3436d65c33f0b47a13a64a806675a1a7
Author: Christopher Michael <[email protected]>
Date:   Tue Apr 23 09:14:52 2019 -0400

    elput: Remove useless call to eldbus_message_unref
    
    If we are returning here due to a failure to create the eldbus
    message, then there is no point in trying to free it as it is already
    null.
    
    @fix
---
 src/lib/elput/elput_logind.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/lib/elput/elput_logind.c b/src/lib/elput/elput_logind.c
index 40e483ebe5..cca5ea7eb7 100644
--- a/src/lib/elput/elput_logind.c
+++ b/src/lib/elput/elput_logind.c
@@ -41,7 +41,6 @@ _logind_device_pause_complete(Elput_Manager *em, uint32_t 
major, uint32_t minor)
    if (!msg)
      {
         ERR("Could not create method call for proxy");
-        eldbus_message_unref(msg);
         return;
      }
 

-- 


Reply via email to