0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 21:13:04 +02:00

Merge pull request #3394 from cg2121/fix-leak

UI: Fix memory leak when dropping files
This commit is contained in:
Jim 2020-09-03 07:45:59 -07:00 committed by GitHub
commit 44bdf60d06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,8 +51,11 @@ static string GenerateSourceName(const char *base)
}
obs_source_t *source = obs_get_source_by_name(name.c_str());
if (!source)
return name;
else
obs_source_release(source);
}
}