aboutsummaryrefslogtreecommitdiff
path: root/build2/target.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/target.cxx')
-rw-r--r--build2/target.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/build2/target.cxx b/build2/target.cxx
index cdecfd3..540f4b4 100644
--- a/build2/target.cxx
+++ b/build2/target.cxx
@@ -48,6 +48,12 @@ namespace build2
// target
//
+ target::
+ ~target ()
+ {
+ clear_data ();
+ }
+
void target::
recipe (action_type a, recipe_type r)
{
@@ -87,6 +93,7 @@ namespace build2
void target::
reset (action_type)
{
+ clear_data ();
prerequisite_targets.clear ();
}