Skip to content

Commit

Permalink
fix memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
CoolSpy3 committed Aug 17, 2024
1 parent 12f57d5 commit 6f8e71e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/webots/vrml/WbNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,8 @@ WbNode::~WbNode() {
n = mInternalProtoParameters.size() - 1;
for (int i = n; i >= 0; --i)
delete mInternalProtoParameters[i];
foreach (WbNodeProtoInfo *protoInfo, mProtoParents)
delete protoInfo;
mProto->unref();
}

Expand Down

0 comments on commit 6f8e71e

Please sign in to comment.