mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
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:
+1
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user