Release lang_priv.
authorScott Wood <scott@thor.buserror.net>
Sun, 6 Apr 2008 20:09:50 +0000 (15:09 -0500)
committerScott Wood <scott@thor.buserror.net>
Sun, 6 Apr 2008 20:09:50 +0000 (15:09 -0500)
idlcomp/namespace.cc

index 0a79743194b3cc6fd67f840c21645815fb20a17d..b681d91736ae76c2637d0145e500f8fc97cf8753 100644 (file)
@@ -273,6 +273,9 @@ void NameSpace::add_import(Symbol *sym, const char *filename)
 
 Symbol::~Symbol()
 {
+       if (lang_priv)
+               lang_priv->release();
+
        if (ns && !ns->dying) {
                try {
                        ns->del(this);