exeldro / obs-source-record

GNU General Public License v2.0
370 stars 43 forks source link

fix memory leak #49

Closed norihiro closed 2 years ago

norihiro commented 2 years ago

Description

Release file name string returned by os_generate_formatted_filename.

Motivation and Context

Prior to this change, OBS reported memory leaks.

How Has This Been Tested?

Tested on Fedora 34.

Scene collection setup:

  1. Add Source Record filter to a source
  2. Set Record Mode to Recording

To check the memory leaks,

  1. Start OBS
  2. Start recording, wait 2 or 3 seconds, stop recording.
  3. Exit OBS
  4. Check memory leaks reported in the log.