Skip to content

Commit 363c74c

Browse files
committed
Fix some leaks
1 parent 83a78d1 commit 363c74c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/draw.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,7 @@ GraphicsWindow::Selection GraphicsWindow::ChooseFromHoverToSelect() {
361361
bestDepth = hov.depth;
362362
sel = hov.selection;
363363
}
364+
364365
return sel;
365366
}
366367

@@ -399,7 +400,8 @@ GraphicsWindow::Selection GraphicsWindow::ChooseFromHoverToDrag() {
399400
}
400401

401402
void GraphicsWindow::HitTestMakeSelection(Point2d mp) {
402-
hoverList = {};
403+
hoverList.Clear();
404+
403405
Selection sel = {};
404406

405407
// Did the view projection change? If so, invalidate bounding boxes.

src/system.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ void System::WriteJacobian(int tag) {
5858
if(pd->IsZeroConst()) continue;
5959
mat.A.sym->insert(i, j->second) = pd;
6060
}
61+
paramsUsed.Clear();
6162
mat.B.sym.push_back(f);
6263
}
6364
}

0 commit comments

Comments
 (0)