trivial: Fix a recent regression causing a double-free

This was introduced accidentally in a9be536ef0.

Fixes https://github.com/fwupd/fwupd/issues/1461
This commit is contained in:
Richard Hughes 2019-10-14 12:30:07 +01:00
parent 8feba21210
commit cbf53fe52d

View File

@ -1517,7 +1517,7 @@ fu_plugin_runner_usb_device_added (FuPlugin *self, FuUsbDevice *device, GError *
FWUPD_ERROR, FWUPD_ERROR,
FWUPD_ERROR_NOT_SUPPORTED)) FWUPD_ERROR_NOT_SUPPORTED))
return TRUE; return TRUE;
g_propagate_error (error, error_local); g_propagate_error (error, g_steal_pointer (&error_local));
return FALSE; return FALSE;
} }
} }
@ -1566,7 +1566,7 @@ fu_plugin_runner_udev_device_added (FuPlugin *self, FuUdevDevice *device, GError
FWUPD_ERROR, FWUPD_ERROR,
FWUPD_ERROR_NOT_SUPPORTED)) FWUPD_ERROR_NOT_SUPPORTED))
return TRUE; return TRUE;
g_propagate_error (error, error_local); g_propagate_error (error, g_steal_pointer (&error_local));
return FALSE; return FALSE;
} }
} }