diff options
-rw-r--r-- | src/nm-exported-object.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nm-exported-object.c b/src/nm-exported-object.c index c55d9b0021..32b5ec05dd 100644 --- a/src/nm-exported-object.c +++ b/src/nm-exported-object.c @@ -943,14 +943,14 @@ vtype_found: ifdata = &priv->interfaces[i]; if ( ifdata->property_changed_signal_id && !NMDBUS_IS_DEVICE_STATISTICS_SKELETON (ifdata->interface)) { - if (j++ > 0) - g_variant_ref (value_variant); + j++; g_hash_table_insert (ifdata->pending_notifies, (gpointer) dbus_property_name, - value_variant); + g_variant_ref (value_variant)); } } nm_assert (j > 0); + g_variant_unref (value_variant); } else if (ifdata->property_changed_signal_id) { /* @dbus_property_name is inside classinfo and never freed, thus we don't clone it. * Also, we do a pointer, not string comparison. */ |