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