forked from AuroraMiddleware/gtk
spinbutton: Trivial cleanup
Use g_clear_object in a few places.
This commit is contained in:
parent
4483636016
commit
811c1c9484
@ -736,11 +736,8 @@ gtk_spin_button_finalize (GObject *object)
|
||||
|
||||
gtk_spin_button_unset_adjustment (spin_button);
|
||||
|
||||
if (priv->down_panel_context)
|
||||
g_object_unref (priv->down_panel_context);
|
||||
|
||||
if (priv->up_panel_context)
|
||||
g_object_unref (priv->up_panel_context);
|
||||
g_clear_object (&priv->up_panel_context);
|
||||
g_clear_object (&priv->down_panel_context);
|
||||
|
||||
g_object_unref (priv->swipe_gesture);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user