summaryrefslogtreecommitdiffstats
path: root/src/misc
diff options
context:
space:
mode:
Diffstat (limited to 'src/misc')
-rw-r--r--src/misc/vec/vecVec.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/misc/vec/vecVec.h b/src/misc/vec/vecVec.h
index f8f36d8b..157b887c 100644
--- a/src/misc/vec/vecVec.h
+++ b/src/misc/vec/vecVec.h
@@ -352,6 +352,14 @@ static inline void Vec_VecFree( Vec_Vec_t * p )
if ( vVec ) Vec_PtrFree( vVec );
Vec_PtrFree( (Vec_Ptr_t *)p );
}
+static inline void Vec_VecErase( Vec_Vec_t * p )
+{
+ Vec_Ptr_t * vVec;
+ int i;
+ Vec_VecForEachLevel( p, vVec, i )
+ if ( vVec ) Vec_PtrFree( vVec );
+ Vec_PtrErase( (Vec_Ptr_t *)p );
+}
/**Function*************************************************************