Skip to content

Commit

Permalink
Cleanup global enums cache
Browse files Browse the repository at this point in the history
  • Loading branch information
iakov committed Aug 29, 2024
1 parent 7467625 commit 8f7b474
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions src/PythonQt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -427,9 +427,9 @@ PythonQtPrivate::~PythonQtPrivate() {
delete _defaultImporter;
_defaultImporter = nullptr;

//qDeleteAll(_knownClassInfos);
//_knownClassInfos.clear();
//PythonQtClassInfo::clearInteralStaticData();
qDeleteAll(_knownClassInfos);
_knownClassInfos.clear();
PythonQtClassInfo::clearInteralStaticData();

PythonQtMethodInfo::cleanupCachedMethodInfos();
PythonQtArgumentFrame::cleanupFreeList();
Expand Down Expand Up @@ -1544,14 +1544,6 @@ void PythonQtPrivate::preCleanup()
_pyEnsureFuture = nullptr;
_pyFutureClass = nullptr;
_pyTaskDoneCallback = nullptr;
for(auto &ci: _knownClassInfos) {
if (!ci->referenceCountingUnrefCB()) {
//delete ci;
ci = nullptr;
}
}

PythonQtClassInfo::clearInteralStaticData();
}

void PythonQtPrivate::setupSharedLibrarySuffixes()
Expand Down

0 comments on commit 8f7b474

Please sign in to comment.