possible fix for spritesheet breaking unload
This commit is contained in:
parent
8a29955b1f
commit
2b02bf9d2e
1 changed files with 5 additions and 1 deletions
|
|
@ -491,13 +491,17 @@ void ARC_Spritesheet_Delete(ARC_Config* config, ARC_String *string, void *value)
|
||||||
void *temp;
|
void *temp;
|
||||||
ARC_Config_Get(config, string, &temp);
|
ARC_Config_Get(config, string, &temp);
|
||||||
if(temp){
|
if(temp){
|
||||||
|
//TODO: test to see if this breaks references
|
||||||
free(sheetValue);
|
free(sheetValue);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint64_t split = getIndexAndErrorCheck(string, ",", 1);
|
uint64_t split = getIndexAndErrorCheck(string, ",", 1);
|
||||||
if(arc_errno){
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue