MCPcopy Create free account
hub / github.com/DFHack/dfhack / cleanup

Method cleanup

library/modules/DFSDL.cpp:130–139  ·  view source on GitHub ↗

It's ok to leave NULLs in the raws list (according to usage in g_src)

Source from the content-addressed store, hash-verified

128
129// It's ok to leave NULLs in the raws list (according to usage in g_src)
130void DFSDL::cleanup() {
131 if (g_sdl_handle) {
132 ClosePlugin(g_sdl_handle);
133 g_sdl_handle = nullptr;
134 }
135 if (g_sdl_image_handle) {
136 ClosePlugin(g_sdl_image_handle);
137 g_sdl_image_handle = nullptr;
138 }
139}
140
141SDL_Surface * DFSDL::DFIMG_Load(const char *file) {
142 return g_IMG_Load(file);

Callers

nothing calls this directly

Calls 1

ClosePluginFunction · 0.85

Tested by

no test coverage detected