aboutsummaryrefslogtreecommitdiff
path: root/sources/TZR_Quit.c
diff options
context:
space:
mode:
Diffstat (limited to 'sources/TZR_Quit.c')
-rw-r--r--sources/TZR_Quit.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sources/TZR_Quit.c b/sources/TZR_Quit.c
index 7d819a3..62be0b0 100644
--- a/sources/TZR_Quit.c
+++ b/sources/TZR_Quit.c
@@ -23,6 +23,10 @@ TZR_Quit(void)
___tzr_joysticks = NULL;
___tzr_joysticks_size = 0;
___tzr_joysticks_capacity = 0;
+ if (___tzr_target_pre != NULL) {
+ SDL_DestroyTexture(___tzr_target_pre);
+ ___tzr_target = NULL;
+ }
if (___tzr_target != NULL) {
SDL_DestroyTexture(___tzr_target);
___tzr_target = NULL;