diff --git a/src/compositor-rdp.c b/src/compositor-rdp.c index 4ef0dd1..cd9cb11 100644 --- a/src/compositor-rdp.c +++ b/src/compositor-rdp.c @@ -541,9 +541,11 @@ rdp_restore(struct weston_compositor *ec) static void rdp_destroy(struct weston_compositor *ec) { + struct rdp_backend *b = (struct rdp_backend *) ec->backend; + weston_compositor_shutdown(ec); - free(ec); + free(b); } static