Browse Source

only delete if it loaded

master
Odilitime 5 years ago
parent
commit
4dec09a90b
  1. 6
      src/graphics/components/AnimeComponent.cpp

6
src/graphics/components/AnimeComponent.cpp

@ -86,7 +86,9 @@ for (int py = 0; py < 1024; py++) { @@ -86,7 +86,9 @@ for (int py = 0; py < 1024; py++) {
glGenerateMipmap(GL_TEXTURE_2D);
#ifndef __MINGW32__
tlsf_free(anime->m_Ptr);
delete anime;
if (anime) {
tlsf_free(anime->m_Ptr);
delete anime;
}
#endif
}

Loading…
Cancel
Save