1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-18 13:54:36 -05:00

Use g_list_free_full()

Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
This commit is contained in:
Quentin Glidic 2019-04-19 10:00:58 +02:00
parent a9dae788d1
commit 7416f344a3
No known key found for this signature in database
GPG key ID: AC203F96E2C34BB7
2 changed files with 3 additions and 6 deletions

View file

@ -694,8 +694,7 @@ gboolean rofi_theme_parse_file ( const char *file )
}
}
// Free up.
g_list_foreach ( imported_files, (GFunc)g_free, NULL);
g_list_free ( imported_files );
g_list_free_full ( imported_files, g_free );
g_queue_free ( file_queue );
imported_files = NULL;
file_queue = NULL;
@ -730,8 +729,7 @@ gboolean rofi_theme_parse_string ( const char *string )
}
}
// Free up.
g_list_foreach ( imported_files, (GFunc)g_free, NULL);
g_list_free ( imported_files );
g_list_free_full ( imported_files, g_free );
imported_files = NULL;
g_queue_free ( file_queue );
file_queue = NULL;

View file

@ -296,8 +296,7 @@ t_name_prefix_optional t_entry_name_path_selectors T_BOPEN t_property_list_optio
for ( GList *iter = g_list_first ( (GList*)liter->data ); iter ; iter = g_list_next ( iter ) ) {
widget = rofi_theme_find_or_create_name ( widget, iter->data );
}
g_list_foreach ( (GList*)liter->data, (GFunc)g_free , NULL );
g_list_free ( (GList*)liter->data );
g_list_free_full ( (GList*)liter->data, g_free );
widget->set = TRUE;
rofi_theme_widget_add_properties ( widget, $4);
}