Leaks fixes

pull/25/head
parent 787dde3f7b
commit b17c311925

@ -1441,6 +1441,7 @@ config_str yon_resource_open_file(const char *path, int *size){
gsize sz;
GFile *file = g_file_new_for_uri(path);
g_file_load_contents(file,NULL,&modules,&sz,NULL,NULL);
g_object_unref(G_OBJECT(file));
parsed = yon_char_parse(modules,size,"\n");
return parsed;
}

Loading…
Cancel
Save