From aa539daff5173917a48ead28f4dcde88d1826b23 Mon Sep 17 00:00:00 2001 From: Gwanglim Lee Date: Tue, 9 Aug 2016 15:50:13 +0900 Subject: [PATCH] wayland-common: Added missing renderer destroy calls when connection failed. Change-Id: I0fcf4ef98288f636e5c536b1b6488d0670cc025e --- src/lib/wayland/wayland-common.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lib/wayland/wayland-common.c b/src/lib/wayland/wayland-common.c index f97d1c9..de94392 100644 --- a/src/lib/wayland/wayland-common.c +++ b/src/lib/wayland/wayland-common.c @@ -147,6 +147,12 @@ pepper_wayland_connect(pepper_compositor_t *compositor, const char *socket_name) return conn; error: + if (conn->pixman_renderer) + pepper_renderer_destroy(conn->pixman_renderer); + + if (conn->gl_renderer) + pepper_renderer_destroy(conn->gl_renderer); + string_free(conn->socket_name); wl_display_disconnect(conn->display); free(conn); -- 2.7.4