core: strict return type in g_object_ref()

This is now a requirement when using glib 2.56.
This commit is contained in:
Aleksander Morgado
2021-04-30 12:26:25 +02:00
parent edee1e3f84
commit 25a1b28fbf
11 changed files with 52 additions and 52 deletions

View File

@@ -750,7 +750,7 @@ handle_set_logging (MmGdbusOrgFreedesktopModemManager1 *manager,
SetLoggingContext *ctx;
ctx = g_new0 (SetLoggingContext, 1);
ctx->self = g_object_ref (manager);
ctx->self = MM_BASE_MANAGER (g_object_ref (manager));
ctx->invocation = g_object_ref (invocation);
ctx->level = g_strdup (level);
@@ -813,7 +813,7 @@ handle_scan_devices (MmGdbusOrgFreedesktopModemManager1 *manager,
ScanDevicesContext *ctx;
ctx = g_new (ScanDevicesContext, 1);
ctx->self = g_object_ref (manager);
ctx->self = MM_BASE_MANAGER (g_object_ref (manager));
ctx->invocation = g_object_ref (invocation);
mm_auth_provider_authorize (ctx->self->priv->authp,
@@ -890,7 +890,7 @@ handle_report_kernel_event (MmGdbusOrgFreedesktopModemManager1 *manager,
ReportKernelEventContext *ctx;
ctx = g_slice_new0 (ReportKernelEventContext);
ctx->self = g_object_ref (manager);
ctx->self = MM_BASE_MANAGER (g_object_ref (manager));
ctx->invocation = g_object_ref (invocation);
ctx->dictionary = g_variant_ref (dictionary);
@@ -1215,7 +1215,7 @@ handle_inhibit_device (MmGdbusOrgFreedesktopModemManager1 *manager,
InhibitDeviceContext *ctx;
ctx = g_slice_new0 (InhibitDeviceContext);
ctx->self = g_object_ref (manager);
ctx->self = MM_BASE_MANAGER (g_object_ref (manager));
ctx->invocation = g_object_ref (invocation);
ctx->uid = g_strdup (uid);
ctx->inhibit = inhibit;