Backed out changeset 064a1998a957

main
Philipp Wiesemann 2015-04-09 22:14:05 +02:00
parent f87963488b
commit 67549d3320
1 changed files with 0 additions and 3 deletions

View File

@ -284,13 +284,11 @@ Wayland_VideoInit(_THIS)
data->display = WAYLAND_wl_display_connect(NULL); data->display = WAYLAND_wl_display_connect(NULL);
if (data->display == NULL) { if (data->display == NULL) {
SDL_free(data);
return SDL_SetError("Failed to connect to a Wayland display"); return SDL_SetError("Failed to connect to a Wayland display");
} }
data->registry = wl_display_get_registry(data->display); data->registry = wl_display_get_registry(data->display);
if (data->registry == NULL) { if (data->registry == NULL) {
SDL_free(data);
return SDL_SetError("Failed to get the Wayland registry"); return SDL_SetError("Failed to get the Wayland registry");
} }
@ -304,7 +302,6 @@ Wayland_VideoInit(_THIS)
data->xkb_context = WAYLAND_xkb_context_new(0); data->xkb_context = WAYLAND_xkb_context_new(0);
if (!data->xkb_context) { if (!data->xkb_context) {
SDL_free(data);
return SDL_SetError("Failed to create XKB context"); return SDL_SetError("Failed to create XKB context");
} }