iface-modem-3gpp: coding style updates in initialization sequence
This commit is contained in:

committed by
Aleksander Morgado

parent
db6b45fa10
commit
e1691780f7
@@ -3167,8 +3167,8 @@ struct _InitializationContext {
|
||||
static void
|
||||
initialization_context_free (InitializationContext *ctx)
|
||||
{
|
||||
g_object_unref (ctx->skeleton);
|
||||
g_free (ctx);
|
||||
g_clear_object (&ctx->skeleton);
|
||||
g_slice_free (InitializationContext, ctx);
|
||||
}
|
||||
|
||||
static void
|
||||
@@ -3267,8 +3267,8 @@ load_enabled_facility_locks_ready (MMIfaceModem3gpp *self,
|
||||
GTask *task)
|
||||
{
|
||||
InitializationContext *ctx;
|
||||
g_autoptr(GError) error = NULL;
|
||||
MMModem3gppFacility facilities;
|
||||
g_autoptr(GError) error = NULL;
|
||||
|
||||
ctx = g_task_get_task_data (task);
|
||||
|
||||
@@ -3523,7 +3523,7 @@ mm_iface_modem_3gpp_initialize (MMIfaceModem3gpp *self,
|
||||
NULL);
|
||||
}
|
||||
|
||||
ctx = g_new0 (InitializationContext, 1);
|
||||
ctx = g_slice_new0 (InitializationContext);
|
||||
ctx->step = INITIALIZATION_STEP_FIRST;
|
||||
ctx->skeleton = skeleton;
|
||||
|
||||
|
Reference in New Issue
Block a user