diff --git a/src/graphics/sdl/config.c b/src/graphics/sdl/config.c index e03b21b..71ab8d9 100644 --- a/src/graphics/sdl/config.c +++ b/src/graphics/sdl/config.c @@ -491,13 +491,17 @@ void ARC_Spritesheet_Delete(ARC_Config* config, ARC_String *string, void *value) void *temp; ARC_Config_Get(config, string, &temp); if(temp){ + //TODO: test to see if this breaks references free(sheetValue); return; } uint64_t split = getIndexAndErrorCheck(string, ",", 1); if(arc_errno){ - free(sheetValue); + //TODO: test to make sure no edge cases + // free(sheetValue); + ARC_SDL_Texture_Delete(config, string, value); + arc_errno = 0; return; }