mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-12 04:11:06 -05:00
Fix crash when accessing files in profile dir
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user