summaryrefslogtreecommitdiff
path: root/libnm-util/nm-connection.c
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2015-02-07 15:09:48 +0100
committerThomas Haller <thaller@redhat.com>2015-02-09 11:51:05 +0100
commit027ab3efaa4c3e0de12f921df6854373910b06e7 (patch)
treeecfbeb5330c57ef50732ae19ad4157619f43a71a /libnm-util/nm-connection.c
parent1567a9f7125f0384226bced6ae8c92346251439c (diff)
downloadNetworkManager-027ab3efaa4c3e0de12f921df6854373910b06e7.tar.gz
libnm-util: only unref and don't destroy hash in nm_connection_to_hash()
The returned hash from nm_connection_to_hash() used to destroy the nested hashes, instead of only unrefing them.
Diffstat (limited to 'libnm-util/nm-connection.c')
-rw-r--r--libnm-util/nm-connection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libnm-util/nm-connection.c b/libnm-util/nm-connection.c
index a1350f5445..3a929b045f 100644
--- a/libnm-util/nm-connection.c
+++ b/libnm-util/nm-connection.c
@@ -1241,7 +1241,7 @@ nm_connection_to_hash (NMConnection *connection, NMSettingHashFlags flags)
g_return_val_if_fail (NM_IS_CONNECTION (connection), NULL);
ret = g_hash_table_new_full (g_str_hash, g_str_equal,
- g_free, (GDestroyNotify) g_hash_table_destroy);
+ g_free, (GDestroyNotify) g_hash_table_unref);
priv = NM_CONNECTION_GET_PRIVATE (connection);