From 67549d3320a6ac6ffc103dddc19ae379b9877170 Mon Sep 17 00:00:00 2001 From: Philipp Wiesemann Date: Thu, 9 Apr 2015 22:14:05 +0200 Subject: [PATCH] Backed out changeset 064a1998a957 --- src/video/wayland/SDL_waylandvideo.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/video/wayland/SDL_waylandvideo.c b/src/video/wayland/SDL_waylandvideo.c index fd92026e9..2e74a0869 100644 --- a/src/video/wayland/SDL_waylandvideo.c +++ b/src/video/wayland/SDL_waylandvideo.c @@ -284,13 +284,11 @@ Wayland_VideoInit(_THIS) data->display = WAYLAND_wl_display_connect(NULL); if (data->display == NULL) { - SDL_free(data); return SDL_SetError("Failed to connect to a Wayland display"); } data->registry = wl_display_get_registry(data->display); if (data->registry == NULL) { - SDL_free(data); return SDL_SetError("Failed to get the Wayland registry"); } @@ -304,7 +302,6 @@ Wayland_VideoInit(_THIS) data->xkb_context = WAYLAND_xkb_context_new(0); if (!data->xkb_context) { - SDL_free(data); return SDL_SetError("Failed to create XKB context"); }