Fixed memory leak that occurred on failed service (dis)connect.
authorOssama Othman <ossama.othman@intel.com>
Tue, 26 Nov 2013 17:48:34 +0000 (09:48 -0800)
committerOssama Othman <ossama.othman@intel.com>
Tue, 26 Nov 2013 17:48:34 +0000 (09:48 -0800)
Change-Id: If706a7ccc1e5036c9e0b56554b80ae265a4d90d5
Signed-off-by: Ossama Othman <ossama.othman@intel.com>
plugins/connman/service.cpp

index 757e1d7..463b191 100644 (file)
@@ -71,7 +71,7 @@ ivi::settings::service::call_method(char const * name,
                            nullptr,  // Not cancellable
                            &error));
 
-  unique_ptr<GError> safe_error;
+  unique_ptr<GError> safe_error(error);
 
   if (ret != nullptr) {
     // Nothing to add to successful response.