daemon: fallthrough to the error case instead of repeating cleanup statements

This commit is contained in:
George Kiagiadakis 2023-04-10 23:44:08 +03:00 committed by Julian Bouzas
parent 13f9f98bc8
commit f00011d23a

View file

@ -413,10 +413,7 @@ wp_init_transition_execute_step (WpTransition * transition, guint step)
case STEP_CLEANUP:
wp_info ("wirePlumber initialized");
g_clear_object (&self->om);
g_list_free_full (self->components, (GDestroyNotify) component_data_free);
self->components = NULL;
break;
G_GNUC_FALLTHROUGH;
case WP_TRANSITION_STEP_ERROR:
g_clear_object (&self->om);