diff options
author | Milan Crha <mcrha@redhat.com> | 2011-03-11 21:48:19 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-06-30 00:41:44 +0800 |
commit | c522af8e873e6a57681bb7714b3873afd49539a3 (patch) | |
tree | 11fd556ee1409bf310aad1a9e773a83e7839571f /modules/network-manager/evolution-network-manager.c | |
parent | a4170351b2cca7ef61f4530f5d72d3a4090f199f (diff) | |
download | gsoc2013-evolution-c522af8e873e6a57681bb7714b3873afd49539a3.tar gsoc2013-evolution-c522af8e873e6a57681bb7714b3873afd49539a3.tar.gz gsoc2013-evolution-c522af8e873e6a57681bb7714b3873afd49539a3.tar.bz2 gsoc2013-evolution-c522af8e873e6a57681bb7714b3873afd49539a3.tar.lz gsoc2013-evolution-c522af8e873e6a57681bb7714b3873afd49539a3.tar.xz gsoc2013-evolution-c522af8e873e6a57681bb7714b3873afd49539a3.tar.zst gsoc2013-evolution-c522af8e873e6a57681bb7714b3873afd49539a3.zip |
Bug #644301 - Invalid GVariant format in NetworkManager module
Diffstat (limited to 'modules/network-manager/evolution-network-manager.c')
-rw-r--r-- | modules/network-manager/evolution-network-manager.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/network-manager/evolution-network-manager.c b/modules/network-manager/evolution-network-manager.c index 1c15a84a16..0ea86e1e92 100644 --- a/modules/network-manager/evolution-network-manager.c +++ b/modules/network-manager/evolution-network-manager.c @@ -139,7 +139,7 @@ network_manager_check_initial_state (ENetworkManager *extension) extension->connection, message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, 100, NULL, NULL, &error); - if (response != NULL) { + if (response != NULL && !g_dbus_message_to_gerror (response, &error)) { GVariant *body = g_dbus_message_get_body (response); g_variant_get (body, "(u)", &state); @@ -147,6 +147,8 @@ network_manager_check_initial_state (ENetworkManager *extension) g_warning ("%s: %s", G_STRFUNC, error ? error->message : "Unknown error"); if (error) g_error_free (error); + if (response) + g_object_unref (response); g_object_unref (message); return; } |