Fix memory leak settings dialog

This commit is contained in:
Exeldro 2024-06-14 13:08:14 +02:00
parent efc4d296f8
commit b72b3e5b95

View File

@ -205,7 +205,11 @@ OBSBasicSettings::OBSBasicSettings(QMainWindow *parent) : QDialog(parent)
setLayout(vlayout);
}
OBSBasicSettings::~OBSBasicSettings() {}
OBSBasicSettings::~OBSBasicSettings()
{
for (auto it = video_encoder_properties.begin(); it != video_encoder_properties.end(); it++)
obs_properties_destroy(it->second);
}
QIcon OBSBasicSettings::GetGeneralIcon() const
{