Release Required if return result is null

whbcstreaming

New Member
Quick question about releasing results.
If the below command returns a nil (i.e. there is no source named "Service-Snap-1")
do you still have to obs_source_release on the nil result?
local source = obs.obs_get_source_by_name("Service-Snap-1")

Does the answer also apply for something like obs_source_get_settings (which requires
obs_release_data on the result)?

Thanks,

Pat
 
Top