diff options
| author | expwnent | 2012-08-27 14:42:00 -0400 |
|---|---|---|
| committer | expwnent | 2012-08-27 14:42:00 -0400 |
| commit | e12e7ddd40677f6048993bbbe12886f3982c0b43 (patch) | |
| tree | 8eb0b987f739d839f67e81f4cfaf50d8ecfdb0b4 /plugins/dig.cpp | |
| parent | 6d123687241f76775156faed5ebb48c4242236a0 (diff) | |
| download | dfhack-e12e7ddd40677f6048993bbbe12886f3982c0b43.tar.gz dfhack-e12e7ddd40677f6048993bbbe12886f3982c0b43.tar.bz2 dfhack-e12e7ddd40677f6048993bbbe12886f3982c0b43.tar.xz | |
Fixed some memory leaks.
Diffstat (limited to 'plugins/dig.cpp')
| -rw-r--r-- | plugins/dig.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/dig.cpp b/plugins/dig.cpp index c1b6f633..5e2bb9f8 100644 --- a/plugins/dig.cpp +++ b/plugins/dig.cpp @@ -963,7 +963,7 @@ command_result digexp (color_ostream &out, vector <string> & parameters) mx.setDesignationAt(pos,des); } } - mx.WriteAll(); + mx.WriteAll(); } else for(uint32_t x = 0; x < x_max; x++) { @@ -1141,6 +1141,7 @@ command_result digv (color_ostream &out, vector <string> & parameters) } } MCache->WriteAll(); + delete MCache; return CR_OK; } @@ -1354,6 +1355,7 @@ command_result digl (color_ostream &out, vector <string> & parameters) } } MCache->WriteAll(); + delete MCache; return CR_OK; } |
