object: deactivate only the features that were previously active

This commit is contained in:
George Kiagiadakis 2021-03-25 18:13:11 +02:00
parent 5c84f58b9e
commit c1f1614eb6

View file

@ -424,7 +424,8 @@ wp_object_deactivate (WpObject * self, WpObjectFeatures features)
g_return_if_fail (WP_IS_OBJECT (self));
g_return_if_fail (WP_OBJECT_GET_CLASS (self)->deactivate);
WP_OBJECT_GET_CLASS (self)->deactivate (self, features);
WpObjectPrivate *priv = wp_object_get_instance_private (self);
WP_OBJECT_GET_CLASS (self)->deactivate (self, features & priv->ft_active);
}
/**