Check for a NULL pointer before dereferencing it.
This commit is contained in:
parent
1292e8a3b6
commit
5289667c16
@ -76,6 +76,8 @@ static void
|
|||||||
g_slice_free(struct g_slicer *gsp)
|
g_slice_free(struct g_slicer *gsp)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
if (gsp == NULL) /* XXX: phk thinks about this */
|
||||||
|
return;
|
||||||
g_free(gsp->slices);
|
g_free(gsp->slices);
|
||||||
if (gsp->hotspot != NULL)
|
if (gsp->hotspot != NULL)
|
||||||
g_free(gsp->hotspot);
|
g_free(gsp->hotspot);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user