Commit 61755d6a authored by colinw's avatar colinw

Added a check for vector->data being NULL in oggz_vector_clear ()



git-svn-id: http://svn.annodex.net/liboggz/trunk@435 8158c8cd-e7e1-0310-9fa4-c5954c97daef
parent 024424cf
......@@ -88,8 +88,12 @@ oggz_vector_new (void)
static void
oggz_vector_clear (OggzVector * vector)
{
oggz_free (vector->data);
vector->data = NULL;
if (vector->data)
{
oggz_free (vector->data);
vector->data = NULL;
}
vector->nr_elements = 0;
vector->max_elements = 0;
}
......
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