diff options
| author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2015-11-24 17:40:03 +0100 | 
|---|---|---|
| committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2015-11-24 17:40:03 +0100 | 
| commit | 914b2423ba7655fd9fd1495b562fc6fbf87716b1 (patch) | |
| tree | 1d4af5b5590eaf691db0f0ad02e0f8b920df611f /UnityCore | |
| parent | 8e685b5cecf96359b288d635b366a0a0ce561053 (diff) | |
GLibDBusProxy: unref the result of Set/Get property calls
(bzr r4036.11.8)
Diffstat (limited to 'UnityCore')
| -rw-r--r-- | UnityCore/GLibDBusProxy.cpp | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/UnityCore/GLibDBusProxy.cpp b/UnityCore/GLibDBusProxy.cpp index 1cd6f4d3d..7e89f6ddf 100644 --- a/UnityCore/GLibDBusProxy.cpp +++ b/UnityCore/GLibDBusProxy.cpp @@ -301,7 +301,7 @@ void DBusProxy::Impl::OnPropertyChanged(GDBusProxy* proxy, GVariant* changed_pro  }  } - g_variant_iter_free (iter); + g_variant_iter_free(iter);  }  for (const gchar *property_name = *invalidated; property_name; property_name = *(++invalidated)) @@ -624,7 +624,7 @@ void DBusProxy::GetProperty(std::string const& name, ReplyCallback const& callba  [] (GObject *source, GAsyncResult *res, gpointer user_data) {  glib::Error err;  std::unique_ptr<ReplyCallback> callback(static_cast<ReplyCallback*>(user_data)); - Variant result(g_dbus_connection_call_finish(G_DBUS_CONNECTION(source), res, &err)); + Variant result(g_dbus_connection_call_finish(G_DBUS_CONNECTION(source), res, &err), StealRef());  if (err)  { @@ -660,7 +660,7 @@ void DBusProxy::SetProperty(std::string const& name, GVariant* value)  nullptr, G_DBUS_CALL_FLAGS_NONE, -1, pimpl->cancellable_,  [] (GObject *source, GAsyncResult *res, gpointer user_data) {  glib::Error err; - Variant result(g_dbus_connection_call_finish(G_DBUS_CONNECTION(source), res, &err)); + Variant result(g_dbus_connection_call_finish(G_DBUS_CONNECTION(source), res, &err), StealRef());  if (err)  {  LOG_ERROR(logger) << "Impossible to set property: " << err; | 
