summaryrefslogtreecommitdiffstats
path: root/src/misc/vec/vecSet.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/misc/vec/vecSet.h')
-rw-r--r--src/misc/vec/vecSet.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/misc/vec/vecSet.h b/src/misc/vec/vecSet.h
index c96636f8..40318b48 100644
--- a/src/misc/vec/vecSet.h
+++ b/src/misc/vec/vecSet.h
@@ -168,12 +168,14 @@ static inline void Vec_SetRestart( Vec_Set_t * p )
static inline void Vec_SetFree_( Vec_Set_t * p )
{
int i;
+ if ( p == NULL ) return;
for ( i = 0; i < p->nPagesAlloc; i++ )
ABC_FREE( p->pPages[i] );
ABC_FREE( p->pPages );
}
static inline void Vec_SetFree( Vec_Set_t * p )
{
+ if ( p == NULL ) return;
Vec_SetFree_( p );
ABC_FREE( p );
}