libobs: Fix potential null pointer dereference

This commit is contained in:
jp9000 2014-12-31 15:25:11 -08:00
parent e14050bbe1
commit fd8f8cfda8

View File

@ -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)