libobs: Allow null pointer with obs_source_release_frame

A null pointer to a release/destroy function should be considered legal,
and simply do nothing.
This commit is contained in:
jp9000
2015-10-22 17:45:58 -07:00
parent 83630fa14a
commit db7aebb940
+1 -1
View File
@@ -2285,7 +2285,7 @@ struct obs_source_frame *obs_source_get_frame(obs_source_t *source)
void obs_source_release_frame(obs_source_t *source,
struct obs_source_frame *frame)
{
if (!obs_ptr_valid(frame, "obs_source_release_frame"))
if (!frame)
return;
if (!source) {