summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorCosmic Linden <cosmic@lindenlab.com>2022-08-09 11:34:09 -0700
committerCosmic Linden <cosmic@lindenlab.com>2022-08-09 11:51:33 -0700
commit47ee4aff475e5086bc532acf1b79a86adcb70d73 (patch)
tree3587ca5a0d3bdebe21458dd51d4fd32198779b3f /indra
parentc58fd13c63048d96bd0cbf7a2ac4aa286e3e3b96 (diff)
SL-17005: Fix crash in initDX when no factory
Diffstat (limited to 'indra')
-rw-r--r--indra/llwindow/llwindowwin32.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/llwindow/llwindowwin32.cpp b/indra/llwindow/llwindowwin32.cpp
index 20443988ab..6e5c1e504a 100644
--- a/indra/llwindow/llwindowwin32.cpp
+++ b/indra/llwindow/llwindowwin32.cpp
@@ -4619,7 +4619,10 @@ void LLWindowWin32::LLWindowWin32Thread::initDX()
}
}
- pFactory->Release();
+ if (pFactory)
+ {
+ pFactory->Release();
+ }
}
}