[gnome-shell] st/password-entry: Fix memory leak
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] st/password-entry: Fix memory leak
- Date: Sat, 21 Dec 2019 13:27:11 +0000 (UTC)
commit c2609227ff02b7281c5caf4ea698187807b28b2f
Author: Florian Müllner <fmuellner gnome org>
Date: Sat Dec 21 04:00:56 2019 +0100
st/password-entry: Fix memory leak
The peek-password icon is currently created twice, whoops.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/910
src/st/st-password-entry.c | 6 ------
1 file changed, 6 deletions(-)
---
diff --git a/src/st/st-password-entry.c b/src/st/st-password-entry.c
index bbca7a261c..31c1ae68c5 100644
--- a/src/st/st-password-entry.c
+++ b/src/st/st-password-entry.c
@@ -164,12 +164,6 @@ st_password_entry_init (StPasswordEntry *entry)
NULL);
st_entry_set_secondary_icon (ST_ENTRY (entry), priv->peek_password_icon);
- priv->peek_password_icon = g_object_new (ST_TYPE_ICON,
- "style-class", "peek-password",
- "icon-name", "eye-not-looking-symbolic",
- NULL);
- st_entry_set_secondary_icon (ST_ENTRY (entry), priv->peek_password_icon);
-
clutter_text = st_entry_get_clutter_text (ST_ENTRY (entry));
clutter_text_set_password_char (CLUTTER_TEXT (clutter_text), BLACK_CIRCLE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]