libfwupd: Correctly set the ID ownership when using g_object_set()

Fixes half of https://github.com/hughsie/fwupd/issues/210
This commit is contained in:
Richard Hughes 2017-08-30 10:34:52 +01:00
parent f1cc61d2f0
commit eb0b3ad71a

View File

@ -872,7 +872,7 @@ fwupd_remote_set_property (GObject *obj, guint prop_id,
self->enabled = g_value_get_boolean (value);
break;
case PROP_ID:
self->id = g_value_get_string (value);
fwupd_remote_set_id (self, g_value_get_string (value));
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (obj, prop_id, pspec);