Commit 46bedb4d authored by Julius Künzel's avatar Julius Künzel
Browse files

Fix recently introduced memory leak

parent c110185c
Pipeline #127138 passed with stage
in 5 minutes and 38 seconds
......@@ -114,6 +114,12 @@ AbstractPythonInterface::AbstractPythonInterface(QObject *parent)
addScript(QStringLiteral("checkpackages.py"));
}
AbstractPythonInterface::~AbstractPythonInterface()
{
delete m_versions;
delete m_scripts;
}
bool AbstractPythonInterface::checkSetup()
{
if (!(m_pyExec.isEmpty() || m_pip3Exec.isEmpty() || m_scripts->values().contains(QStringLiteral("")))) {
......
......@@ -22,6 +22,7 @@ public:
shown to the user.
@returns wether all checks succeeded.
*/
~AbstractPythonInterface() override;
bool checkSetup();
/** @brief Check if all dependencies are installed.
If everything is okay dependenciesAvailable() will be emitted,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment