diff options
| author | mbkma <[email protected]> | 2026-03-12 00:18:10 +0100 |
|---|---|---|
| committer | Victor Kareh <[email protected]> | 2026-03-12 12:26:01 -0400 |
| commit | 58aa9d99a7a60504b35ad03ee452278acd6a3dbd (patch) | |
| tree | b285830308343f6f2ba6178c8172362bc3c07bc6 | |
| parent | 93a686514d8cc5df794280a8d572bfc306ede1fb (diff) | |
| download | mate-desktop-58aa9d99a7a60504b35ad03ee452278acd6a3dbd.tar.bz2 mate-desktop-58aa9d99a7a60504b35ad03ee452278acd6a3dbd.tar.xz | |
| -rw-r--r-- | libmate-desktop/mate-colorsel.c | 2 | ||||
| -rw-r--r-- | libmate-desktop/mate-desktop-item.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/libmate-desktop/mate-colorsel.c b/libmate-desktop/mate-colorsel.c index 58f94a6..bddfda1 100644 --- a/libmate-desktop/mate-colorsel.c +++ b/libmate-desktop/mate-colorsel.c @@ -1892,8 +1892,8 @@ hex_changed (GtkWidget *hex_entry, text = gtk_editable_get_chars (GTK_EDITABLE (priv->hex_entry), 0, -1); if (!g_str_has_prefix (text, "#")) { - g_free (text); gchar *tmp = g_strconcat ("#", text, NULL); + g_free (text); text = tmp; } diff --git a/libmate-desktop/mate-desktop-item.c b/libmate-desktop/mate-desktop-item.c index baf0ad6..5f55e0d 100644 --- a/libmate-desktop/mate-desktop-item.c +++ b/libmate-desktop/mate-desktop-item.c @@ -1366,6 +1366,7 @@ do_percent_subst (const MateDesktopItem *item, g_string_append (str, "--miniicon="); esc = escape_single_quotes (cs, in_single_quotes, in_double_quotes); g_string_append (str, esc); + g_free (esc); } break; case 'i': @@ -1375,6 +1376,7 @@ do_percent_subst (const MateDesktopItem *item, g_string_append (str, "--icon="); esc = escape_single_quotes (cs, in_single_quotes, in_double_quotes); g_string_append (str, esc); + g_free (esc); } break; case 'c': |
