plane: add NULL check to liftoff_plane_destroy()

All other libliftoff destructors already check for NULL, except
this one.
This commit is contained in:
Simon Ser 2023-02-22 10:15:19 +01:00
parent 94eb185771
commit 314684fc64

View file

@ -148,6 +148,10 @@ liftoff_plane_destroy(struct liftoff_plane *plane)
{
size_t i;
if (plane == NULL) {
return;
}
if (plane->layer != NULL) {
plane->layer->plane = NULL;
}