Skip to content

Commit 0158ffb

Browse files
authored
Fix memory leak
The last element was not deleted even when it is the single one in the list.
1 parent 8ea8264 commit 0158ffb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PythonQtMethodInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ const PythonQtMethodInfo::ParameterInfo& PythonQtMethodInfo::getParameterInfoFor
432432
void PythonQtSlotInfo::deleteOverloadsAndThis()
433433
{
434434
PythonQtSlotInfo* cur = this;
435-
while(cur->nextInfo()) {
435+
while(cur) {
436436
PythonQtSlotInfo* next = cur->nextInfo();
437437
delete cur;
438438
cur = next;

0 commit comments

Comments
 (0)