The open source OpenXR runtime

c/main: fix leaks on compositor creation failure

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2434>

authored by

Patrick Nicolas and committed by
Marge Bot
c6f21cdb c4417629

+4 -1
+4 -1
src/xrt/compositor/main/comp_compositor.c
··· 1216 1216 } 1217 1217 } 1218 1218 1219 - return comp_multi_create_system_compositor(&c->base.base, upaf, sys_info, !c->deferred_surface, out_xsysc); 1219 + xret = comp_multi_create_system_compositor(&c->base.base, upaf, sys_info, !c->deferred_surface, out_xsysc); 1220 + if (xret == XRT_SUCCESS) { 1221 + return xret; 1222 + } 1220 1223 1221 1224 error: 1222 1225 if (c != NULL) {