modem-manager: plug udev client leak

The GUdevClient is created when the ModemManager sysfs path is
inhibited; we need to make sure we destroy the object once
uninhibited, or we'll otherwise create a new one if we're running
an additional upgrade operation afterwards.
This commit is contained in:
Aleksander Morgado 2020-11-24 09:40:00 +01:00 committed by Richard Hughes
parent 4cbe99c607
commit b0418d7786

View File

@ -62,6 +62,8 @@ fu_plugin_mm_uninhibit_device (FuPlugin *plugin)
FuPluginData *priv = fu_plugin_get_data (plugin);
g_autoptr(FuPluginMmInhibitedDeviceInfo) info = NULL;
g_clear_object (&priv->udev_client);
/* get the device removed from the plugin cache before uninhibiting */
fu_plugin_mm_udev_device_removed (plugin);