mirror of
https://github.com/brl/mutter.git
synced 2025-06-14 01:09:30 +00:00
meta: Remove meta_free_gslist_and_elements
This function was added for historic reasons, before that we had GSlist's free_full function. Since this can be now easily implemented with a function call and an explicit GDestroyFunc, while no known dependency uses it let's move to use g_slist_free_func instead. https://gitlab.gnome.org/GNOME/mutter/merge_requests/57
This commit is contained in:
@ -241,17 +241,6 @@ utf8_fputs (const char *str,
|
||||
return retval;
|
||||
}
|
||||
|
||||
/**
|
||||
* meta_free_gslist_and_elements: (skip)
|
||||
* @list_to_deep_free: list to deep free
|
||||
*
|
||||
*/
|
||||
void
|
||||
meta_free_gslist_and_elements (GSList *list_to_deep_free)
|
||||
{
|
||||
g_slist_free_full (list_to_deep_free, g_free);
|
||||
}
|
||||
|
||||
#ifdef WITH_VERBOSE_MODE
|
||||
void
|
||||
meta_debug_spew_real (const char *format, ...)
|
||||
|
@ -1525,7 +1525,7 @@ meta_window_unmanage (MetaWindow *window,
|
||||
|
||||
if (window->struts)
|
||||
{
|
||||
meta_free_gslist_and_elements (window->struts);
|
||||
g_slist_free_full (window->struts, g_free);
|
||||
window->struts = NULL;
|
||||
|
||||
meta_topic (META_DEBUG_WORKAREA,
|
||||
|
Reference in New Issue
Block a user