summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/fe/fe_declarator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/TAO_IDL/fe/fe_declarator.cpp')
-rw-r--r--TAO/TAO_IDL/fe/fe_declarator.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/TAO/TAO_IDL/fe/fe_declarator.cpp b/TAO/TAO_IDL/fe/fe_declarator.cpp
index 39ada9380b8..0b44087b598 100644
--- a/TAO/TAO_IDL/fe/fe_declarator.cpp
+++ b/TAO/TAO_IDL/fe/fe_declarator.cpp
@@ -76,9 +76,9 @@ FE_Declarator::FE_Declarator (UTL_ScopedName *n,
DeclaratorType dt,
AST_Decl *cp)
: pd_complex_part (cp),
- pd_name (n),
pd_decl_type (dt)
{
+ this->pd_name = n;
}
// Public operations.
@@ -137,6 +137,14 @@ FE_Declarator::compose (AST_Decl *d)
return 0;
}
+void
+FE_Declarator::destroy (void)
+{
+ this->pd_name->destroy ();
+ delete this->pd_name;
+ this->pd_name = 0;
+}
+
// Data accessors.
AST_Decl *