Display and control your Android device
Fix texture memory leak on error
Romain Vimont483de65ea78d
diff --git a/app/src/texture.c b/app/src/texture.cindex 2672f073..ec99a21e 100644--- a/app/src/texture.c+++ b/app/src/texture.c@@ -127,6 +127,7 @@ sc_texture_create_frame_texture(struct sc_texture *tex,SDL_PropertiesID props = SDL_GetTextureProperties(texture);if (!props) {LOGE("Could not get texture properties: %s", SDL_GetError());+ SDL_DestroyTexture(texture);return NULL;}