diff options
author | Emil Velikov <[email protected]> | 2015-06-18 20:22:54 +0100 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2015-06-30 17:35:20 +0100 |
commit | 4ea5223a95436b76a3f808732c565e9833f84551 (patch) | |
tree | b822f0ee15201f20a93f887979118da3b4e0b8e2 /src | |
parent | 0afa6335079093627b47ff08da38bed00972c217 (diff) |
egl/wayland: cleanup dri2_wl_create_surface error path
Signed-off-by: Emil Velikov <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/egl/drivers/dri2/platform_wayland.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/egl/drivers/dri2/platform_wayland.c b/src/egl/drivers/dri2/platform_wayland.c index 6f42d90ed96..1e127607cdd 100644 --- a/src/egl/drivers/dri2/platform_wayland.c +++ b/src/egl/drivers/dri2/platform_wayland.c @@ -168,13 +168,11 @@ dri2_wl_create_surface(_EGLDriver *drv, _EGLDisplay *disp, dri2_surf); if (dri2_surf->dri_drawable == NULL) { _eglError(EGL_BAD_ALLOC, "dri2->createNewDrawable"); - goto cleanup_dri_drawable; + goto cleanup_surf; } return &dri2_surf->base; - cleanup_dri_drawable: - dri2_dpy->core->destroyDrawable(dri2_surf->dri_drawable); cleanup_surf: free(dri2_surf); |