Fix crash when accessing files in profile dir

This commit is contained in:
WarmUpTill 2026-05-14 16:31:17 +02:00
parent c5185765ee
commit bea4f66eb1

View File

@ -25,6 +25,9 @@ void PopulateProfileSelection(QComboBox *box)
std::string GetPathInProfileDir(const char *filePath)
{
auto path = obs_frontend_get_current_profile_path();
if (!path) {
return "";
}
std::string result(path);
bfree(path);
return result + "/" + filePath;