Fix NULL-pointer dereference after error during VR session start

This commit is contained in:
2020-03-18 18:12:28 +01:00
parent 1a502097c7
commit ac74a843d2

View File

@@ -143,7 +143,7 @@ static void wm_xr_error_handler(const GHOST_XrError *error)
WM_report(RPT_ERROR, error->user_message);
WM_report_banner_show();
if (wm->xr.runtime->context) {
if (wm->xr.runtime) {
/* Just play safe and destroy the entire runtime data, including context. */
wm_xr_runtime_data_free(&wm->xr.runtime);
}