Commit efd310af by Alan Mishchenko

Skip NULL entry when freeing vector of vectors.

parent 5dbfc748
......@@ -334,7 +334,7 @@ static inline void Vec_VecFree( Vec_Vec_t * p )
Vec_Ptr_t * vVec;
int i;
Vec_VecForEachLevel( p, vVec, i )
Vec_PtrFree( vVec );
if ( vVec ) Vec_PtrFree( vVec );
Vec_PtrFree( (Vec_Ptr_t *)p );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment