st/password-entry: Fix peek icon leak
https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1078
This commit is contained in:
parent
4723dd1f4c
commit
c05098cd12
@ -111,6 +111,16 @@ st_password_entry_set_property (GObject *gobject,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
st_password_entry_dispose (GObject *gobject)
|
||||||
|
{
|
||||||
|
StPasswordEntryPrivate *priv = ST_PASSWORD_ENTRY_PRIV (gobject);
|
||||||
|
|
||||||
|
g_clear_object (&priv->peek_password_icon);
|
||||||
|
|
||||||
|
G_OBJECT_CLASS(st_password_entry_parent_class)->dispose (gobject);
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
st_password_entry_class_init (StPasswordEntryClass *klass)
|
st_password_entry_class_init (StPasswordEntryClass *klass)
|
||||||
{
|
{
|
||||||
@ -119,6 +129,7 @@ st_password_entry_class_init (StPasswordEntryClass *klass)
|
|||||||
|
|
||||||
gobject_class->get_property = st_password_entry_get_property;
|
gobject_class->get_property = st_password_entry_get_property;
|
||||||
gobject_class->set_property = st_password_entry_set_property;
|
gobject_class->set_property = st_password_entry_set_property;
|
||||||
|
gobject_class->dispose = st_password_entry_dispose;
|
||||||
|
|
||||||
st_entry_class->secondary_icon_clicked = st_password_entry_secondary_icon_clicked;
|
st_entry_class->secondary_icon_clicked = st_password_entry_secondary_icon_clicked;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user