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:
@@ -301,9 +301,8 @@ fbd_feedback_manager_handle_trigger_feedback (LfbGdbusFeedback *object,
|
|||||||
fbd_event_add_feedback (event, fb);
|
fbd_event_add_feedback (event, fb);
|
||||||
found_fb = TRUE;
|
found_fb = TRUE;
|
||||||
}
|
}
|
||||||
g_object_unref (fb);
|
|
||||||
}
|
}
|
||||||
g_slist_free (feedbacks);
|
g_slist_free_full (feedbacks, g_object_unref);
|
||||||
} else {
|
} else {
|
||||||
/* No feedbacks found at all */
|
/* No feedbacks found at all */
|
||||||
found_fb = FALSE;
|
found_fb = FALSE;
|
||||||
|
|||||||
Reference in New Issue
Block a user