提交 fd8f8cfd 编写于 作者: J jp9000

libobs: Fix potential null pointer dereference

上级 e14050bb
......@@ -2061,7 +2061,7 @@ void obs_source_load(obs_source_t *source)
bool obs_source_active(const obs_source_t *source)
{
return source->activate_refs != 0;
return source ? source->activate_refs != 0 : false;
}
static inline void signal_flags_updated(obs_source_t *source)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册