Check for a NULL pointer before dereferencing it.

This commit is contained in:
Lukas Ertl 2004-07-25 09:41:31 +00:00
parent 1292e8a3b6
commit 5289667c16

@ -76,6 +76,8 @@ static void
g_slice_free(struct g_slicer *gsp)
{
if (gsp == NULL) /* XXX: phk thinks about this */
return;
g_free(gsp->slices);
if (gsp->hotspot != NULL)
g_free(gsp->hotspot);