mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
UI: Add null checks before doing some API calls
Harmless, but generated a debug warning for null pointers passed into the API.
This commit is contained in:
committed by
Ryan Foster
parent
51e3bd5e3d
commit
f9f4171d56
@@ -654,7 +654,7 @@ void OBSBasicPreview::mousePressEvent(QMouseEvent *event)
|
||||
|
||||
void OBSBasicPreview::UpdateCursor(uint32_t &flags)
|
||||
{
|
||||
if (obs_sceneitem_locked(stretchItem)) {
|
||||
if (!stretchItem || obs_sceneitem_locked(stretchItem)) {
|
||||
unsetCursor();
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user