Skip to content

Display and control your Android device

Fix window leak on icon error

Romain Vimont04542a9f58a1
diff --git a/app/src/screen.c b/app/src/screen.c
index 1d694f12..2f325e05 100644
--- a/app/src/screen.c
+++ b/app/src/screen.c
@@ -409,7 +409,7 @@ sc_screen_init(struct sc_screen *screen,
} else {
// without video, the icon is used as window content, it must be present
LOGE("Could not load icon");
- goto error_destroy_fps_counter;
+ goto error_destroy_window;
}
SDL_Surface *icon_novideo = params->video ? NULL : icon;