feedback-manager: Deeply free the feedback list

Instead of freeing each elemnt after each iteration and then the list
itself at the very end just fully free the list. g_autoslist does
not work well on oder glib so do that manually.

This is just cosmetics.
This commit is contained in:
Guido Günther
2020-07-24 12:53:13 +02:00
parent fb076254c9
commit cf56999bf7
+1 -2
View File
@@ -301,9 +301,8 @@ fbd_feedback_manager_handle_trigger_feedback (LfbGdbusFeedback *object,
fbd_event_add_feedback (event, fb);
found_fb = TRUE;
}
g_object_unref (fb);
}
g_slist_free (feedbacks);
g_slist_free_full (feedbacks, g_object_unref);
} else {
/* No feedbacks found at all */
found_fb = FALSE;