Пример #1
0
R_API void r_io_free(RIO *io) {
	if (!io) {
		return;
	}
	r_io_fini (io);
	r_cache_free (io->buffer);
	free (io);
}
Пример #2
0
R_API RIO *r_io_free(RIO *io) {
	if (!io) return NULL;
	/* TODO: properly free inner nfo */
	/* TODO: memory leaks */
	r_list_free (io->sections);
	r_list_free (io->maps);
	r_cache_free (io->buffer);
	r_io_desc_fini (io);
	free (io);
	return NULL;
}
Пример #3
0
R_API RIO *r_io_free(RIO *io) {
	if (!io) return NULL;
	r_list_free (io->plugins);
	r_list_free (io->sections);
	r_list_free (io->maps);
	r_list_free (io->undo.w_list);
	r_cache_free (io->buffer);
	r_list_free (io->cache);
	r_io_desc_fini (io);
	free (io);
	return NULL;
}