iface-modem: remove invalid modem reference count in update_lock_info()

The modem object is being explicitly referenced and stored in the
Context, but then never unref-ed, completely leaking a modem reference
forever.

Fixes: 4df5458847
This commit is contained in:
Aleksander Morgado
2017-11-23 14:20:38 +01:00
parent de334b7777
commit d20d46a629
-3
View File
@@ -2986,9 +2986,7 @@ typedef enum {
} UpdateLockInfoContextStep;
typedef struct {
MMIfaceModem *self;
UpdateLockInfoContextStep step;
GSimpleAsyncResult *result;
MmGdbusModem *skeleton;
MMModemLock lock;
GError *saved_error;
@@ -3230,7 +3228,6 @@ mm_iface_modem_update_lock_info (MMIfaceModem *self,
GTask *task;
ctx = g_slice_new0 (UpdateLockInfoContext);
ctx->self = g_object_ref (self);
g_object_get (self,
MM_IFACE_MODEM_DBUS_SKELETON, &ctx->skeleton,
NULL);