Skip to content

Commit 2865acf

Browse files
committed
Fixed double free or corruption (out)
1 parent f0c0364 commit 2865acf

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/wsjcpp_yaml.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,6 @@ WSJCppYAMLItem::WSJCppYAMLItem(
8282
// ---------------------------------------------------------------------
8383

8484
WSJCppYAMLItem::~WSJCppYAMLItem() {
85-
for (int i = 0; i < m_vObjects.size(); i++) {
86-
WSJCppYAMLItem *pItem = m_vObjects[i];
87-
delete pItem;
88-
}
8985
m_vObjects.clear();
9086
}
9187

0 commit comments

Comments
 (0)