From 2932dc3985181afbf88a87e58ee27dfcca433625 Mon Sep 17 00:00:00 2001 From: gatecat Date: Mon, 8 Feb 2021 17:03:22 +0000 Subject: Make BaseCtx destructor virtual Signed-off-by: gatecat --- common/nextpnr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/nextpnr.h b/common/nextpnr.h index 58bff892..2ecbaf0e 100644 --- a/common/nextpnr.h +++ b/common/nextpnr.h @@ -858,7 +858,7 @@ struct BaseCtx constraintObjects.push_back(wildcard); } - ~BaseCtx() + virtual ~BaseCtx() { delete idstring_str_to_idx; delete idstring_idx_to_str; -- cgit v1.2.3