stream-labs / obs-studio-node

libOBS (OBS Studio) for Node.Js, Electron and similar tools
GNU General Public License v2.0
606 stars 99 forks source link

Technically a memory leak, fix it #1353

Closed stevensoftware52 closed 12 months ago

stevensoftware52 commented 1 year ago

Description

Noticed a possible scenario where some data wasn't freed when creating a source via osn::Input::Create fails, the values in question aren't freed when obs_source_create fails

Motivation and Context

Technically a memory leak

How Has This Been Tested?

Compiled and launched Streamlabs Desktop with change, added sources and saw no difference in behavior.

Types of changes

Checklist: