mirror of
				https://github.com/gnif/LookingGlass.git
				synced 2025-11-04 14:41:55 +00:00 
			
		
		
		
	[common] vector: allow vector_free to be used with NULL
This is done for consistency with free.
This commit is contained in:
		@@ -47,6 +47,8 @@ Vector * vector_create(size_t itemSize, size_t capacity)
 | 
			
		||||
 | 
			
		||||
void vector_free(Vector * vector)
 | 
			
		||||
{
 | 
			
		||||
  if (!vector)
 | 
			
		||||
    return;
 | 
			
		||||
  free(vector->data);
 | 
			
		||||
  free(vector);
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user