From 06ab0b13c99b0edc5f4633187a78a5c449127f6f Mon Sep 17 00:00:00 2001 From: Beniamino Galvani Date: Wed, 4 Oct 2017 14:30:57 +0200 Subject: device: thaw notify in unrealize error path --- src/devices/nm-device.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c index cf73ee016a..5cb1020b74 100644 --- a/src/devices/nm-device.c +++ b/src/devices/nm-device.c @@ -3441,8 +3441,10 @@ nm_device_unrealize (NMDevice *self, gboolean remove_resources, GError **error) if (remove_resources) { if (NM_DEVICE_GET_CLASS (self)->unrealize) { - if (!NM_DEVICE_GET_CLASS (self)->unrealize (self, error)) + if (!NM_DEVICE_GET_CLASS (self)->unrealize (self, error)) { + g_object_thaw_notify (G_OBJECT (self)); return FALSE; + } } else if (ifindex > 0) { nm_platform_link_delete (nm_device_get_platform (self), ifindex); } -- cgit v1.2.1