libobs: Fix potential null pointer dereference

This commit is contained in:
jp9000
2015-01-03 02:37:14 -08:00
parent e14050bbe1
commit fd8f8cfda8
+1 -1
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)