summaryrefslogtreecommitdiff
path: root/backend/src/ir/unit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'backend/src/ir/unit.cpp')
-rw-r--r--backend/src/ir/unit.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/backend/src/ir/unit.cpp b/backend/src/ir/unit.cpp
index 56042446..a350c602 100644
--- a/backend/src/ir/unit.cpp
+++ b/backend/src/ir/unit.cpp
@@ -34,6 +34,7 @@ namespace ir {
Unit::~Unit(void) {
for (const auto &pair : functions) GBE_DELETE(pair.second);
delete profilingInfo;
+ for (const auto &pair : printfs) GBE_DELETE(pair.second);
}
Function *Unit::getFunction(const std::string &name) const {
auto it = functions.find(name);