~aperezdc/kiln

8417f1108ba18cfd824538990f049260cff2b557 — Adrian Perez de Castro 4 years ago faa9ca3 master
Support GLib version older than 2.64

The g_clear_list() convenience macro was introduced in GLib 2.64, and is
the only feature used from such a recent version. Changing the code to
use g_list_free_full() allows building with older GLib releases.
1 files changed, 1 insertions(+), 1 deletions(-)

M libkn/kiln-loader.c
M libkn/kiln-loader.c => libkn/kiln-loader.c +1 -1
@@ 204,7 204,7 @@ kiln_loader_dispose (GObject *object)
    g_hash_table_remove_all (self->modules);
    g_clear_pointer (&self->modules, g_hash_table_unref);
    g_clear_object (&self->context);
    g_clear_list (&self->module_paths, g_free);
    g_list_free_full (g_steal_pointer (&self->module_paths), g_free);

    G_OBJECT_CLASS (kiln_loader_parent_class)->dispose (object);
}