The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

ipc: Tidy debug gui init and error path

+6 -2
+6 -2
src/xrt/ipc/server/ipc_server_process.c
··· 910 910 // Allocate the server itself. 911 911 struct ipc_server *s = U_TYPED_CALLOC(struct ipc_server); 912 912 913 - // need to create early before any vars are added 913 + /* 914 + * Need to create early before any vars are added. Not created in 915 + * init_all since that function is shared with Android and the debug 916 + * GUI isn't supported on Android. 917 + */ 914 918 u_debug_gui_create(&s->debug_gui); 915 919 916 920 int ret = init_all(s, log_level); 917 921 if (ret < 0) { 918 - free(s->debug_gui); 922 + u_debug_gui_stop(&s->debug_gui); 919 923 free(s); 920 924 return ret; 921 925 }