• Alexander Larsson's avatar
    Make constructor-based resource registration malloc free · b79cfda4
    Alexander Larsson authored
    We need to do this because constructors run before main() and
    thus before any call to g_mem_set_vtable, making it impossible to
    use that function if constructors call g_malloc.
    
    We do this by making the constructors just register the static data
    for lazy registration, doing the lazy registration when using
    the global resource set.
    b79cfda4
gresource.h 4.17 KB