Calling clutter_point_free(clutter_point_zero()) or calling
clutter_rect_free(clutter_rect_zero()) should be safe, exactly like it's
safe to call those functions with a NULL argument.
void
clutter_point_free (ClutterPoint *point)
{
- if (point != NULL)
+ if (point != NULL && point != &_clutter_point_zero)
g_slice_free (ClutterPoint, point);
}
void
clutter_rect_free (ClutterRect *rect)
{
- if (rect != NULL)
+ if (rect != NULL && rect != &_clutter_rect_zero)
g_slice_free (ClutterRect, rect);
}