basic callback support
[m6w6/ext-psi] / src / context.c
index ed26f8223214fb62c989e5ee8b57170a75771476..c86a595d8c79be86b07db026024c476080d3adcf 100644 (file)
@@ -342,6 +342,12 @@ void PSI_ContextDtor(PSI_Context *C)
                }
                free(C->structs);
        }
+       if (C->unions) {
+               if (C->unions->list) {
+                       free(C->unions->list);
+               }
+               free(C->unions);
+       }
        if (C->enums) {
                if (C->enums->list) {
                        free(C->enums->list);