`g_free()` works fine on NULL.