summaryrefslogtreecommitdiff
path: root/src/state.c
diff options
context:
space:
mode:
authorjussi2023-05-09 23:48:09 +0300
committerjussi2023-05-09 23:48:09 +0300
commit1e58f551bbfb6a8ef4d83292685d7c3672385c8b (patch)
treea4fbc3e1bf03c72c08ed398795997528f27fcb8f /src/state.c
parent429a9dff96a5dbe1f526ae7cc6e41815eb862cf0 (diff)
downloadreilua-enhanced-1e58f551bbfb6a8ef4d83292685d7c3672385c8b.tar.gz
reilua-enhanced-1e58f551bbfb6a8ef4d83292685d7c3672385c8b.tar.bz2
reilua-enhanced-1e58f551bbfb6a8ef4d83292685d7c3672385c8b.zip
UnloadTexture did not set texture id to NULL.
Diffstat (limited to 'src/state.c')
-rw-r--r--src/state.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/state.c b/src/state.c
index 6db0812..ce7d52f 100644
--- a/src/state.c
+++ b/src/state.c
@@ -122,13 +122,13 @@ void stateFree() {
for ( int i = 0; i < state->imageCount; ++i ) {
if ( state->images[i] != NULL ) {
UnloadImage( *state->images[i] );
- free( state->images[i] );
+ // free( state->images[i] );
}
}
for ( int i = 0; i < state->textureCount; ++i ) {
if ( state->textures[i] != NULL ) {
texturesFreeTexture(i);
- free( state->textures[i] );
+ // free( state->textures[i] );
}
}
for ( int i = 0; i < state->fontCount; ++i ) {