summaryrefslogtreecommitdiff
path: root/plugins/connman/service.cpp
diff options
context:
space:
mode:
authorOssama Othman <ossama.othman@intel.com>2013-11-26 09:48:34 -0800
committerOssama Othman <ossama.othman@intel.com>2013-11-26 09:48:34 -0800
commit086b50649970edd6cf2470d840fcec75035b1d19 (patch)
tree807edd35f9b7dfde2230e37cef3f878f2e652821 /plugins/connman/service.cpp
parent265a1f1077fc011c3da0cfec497c917141a1e8dc (diff)
downloadsettings-daemon-086b50649970edd6cf2470d840fcec75035b1d19.tar.gz
settings-daemon-086b50649970edd6cf2470d840fcec75035b1d19.tar.bz2
settings-daemon-086b50649970edd6cf2470d840fcec75035b1d19.zip
Fixed memory leak that occurred on failed service (dis)connect.
Change-Id: If706a7ccc1e5036c9e0b56554b80ae265a4d90d5 Signed-off-by: Ossama Othman <ossama.othman@intel.com>
Diffstat (limited to 'plugins/connman/service.cpp')
-rw-r--r--plugins/connman/service.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/connman/service.cpp b/plugins/connman/service.cpp
index 757e1d7..463b191 100644
--- a/plugins/connman/service.cpp
+++ b/plugins/connman/service.cpp
@@ -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.