Skip to content

Commit aa945bb

Browse files
committed
ccstruct/polyblk: Fix memory leak
Coverity report: CID 1164730 (#1 of 1): Resource leak (RESOURCE_LEAK) 4. leaked_storage: Variable lines going out of scope leaks the storage it points to. Signed-off-by: Stefan Weil <[email protected]>
1 parent c12757b commit aa945bb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ccstruct/polyblk.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,8 @@ void POLY_BLOCK::fill(ScrollView* window, ScrollView::Color colour) {
294294
}
295295
}
296296
}
297+
298+
delete lines;
297299
}
298300
#endif
299301

0 commit comments

Comments
 (0)