summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2015-01-29 16:22:56 +0100
committerThomas Haller <thaller@redhat.com>2015-01-29 16:23:43 +0100
commit9167b7d66b414be31a29dee53bf8ba9f2c5282e5 (patch)
tree04da6a15445182da9bf6a323c1f7f63f9ab7ee2f
parentcc12f5128c6839779268555ddb616d15f28cd1ec (diff)
downloadNetworkManager-9167b7d66b414be31a29dee53bf8ba9f2c5282e5.tar.gz
core: intern hyphen_name string in nm_properties_changed_signal_add_property()
-rw-r--r--src/nm-properties-changed-signal.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nm-properties-changed-signal.c b/src/nm-properties-changed-signal.c
index 88f975cac2..c6dbb3d532 100644
--- a/src/nm-properties-changed-signal.c
+++ b/src/nm-properties-changed-signal.c
@@ -242,6 +242,7 @@ nm_properties_changed_signal_add_property (GType type,
}
g_assert (!g_hash_table_contains (classinfo->exported_props, hyphen_name));
g_hash_table_insert (classinfo->exported_props,
- hyphen_name,
+ (char *) g_intern_string (hyphen_name),
(char *) dbus_property_name);
+ g_free (hyphen_name);
}