[gnome-initial-setup] password: don't free static string



commit 3215aac12885609d7fbf01a0a9cfc2bcfd3c039a
Author: Will Thompson <will willthompson co uk>
Date:   Sat Feb 15 21:03:45 2020 +0000

    password: don't free static string
    
    'subtitle' is declared with 'g_autofree'. When built without parental
    controls, a static value was assigned to this variable. Copy it.

 gnome-initial-setup/pages/password/gis-password-page.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gnome-initial-setup/pages/password/gis-password-page.c 
b/gnome-initial-setup/pages/password/gis-password-page.c
index 9ed6060..7ec7211 100644
--- a/gnome-initial-setup/pages/password/gis-password-page.c
+++ b/gnome-initial-setup/pages/password/gis-password-page.c
@@ -77,7 +77,7 @@ update_header (GisPasswordPage *page)
 #ifndef HAVE_PARENTAL_CONTROLS
   /* Don’t break UI compatibility if parental controls are disabled. */
   title = g_strdup (_("Set a Password"));
-  subtitle = _("Be careful not to lose your password.");
+  subtitle = g_strdup (_("Be careful not to lose your password."));
   pixbuf = NULL;
   icon_name = "dialog-password-symbolic";
 #else


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]