[tests/gvariant] Handle flavored_free(NULL), since flavored_malloc can return NULL

This commit is contained in:
Colin Walters 2010-05-26 15:59:36 -04:00
parent 88a1e6c102
commit ba1163a33c

View File

@ -1269,6 +1269,8 @@ static void
flavoured_free (gpointer data,
gsize flavour)
{
if (!data)
return;
g_free (((gchar *) data) - flavour);
}