From 06ccb7a39e494e731436f7e6de044ff113c14896 Mon Sep 17 00:00:00 2001 From: monsta Date: Fri, 13 Nov 2015 11:14:45 +0300 Subject: display properties: don't try to free a string literal (fix crash) crash introduced in https://github.com/mate-desktop/mate-desktop/commit/11757da17e9fcdd33474aaa342bf4b6a2daf82d0 --- libmate-desktop/mate-rr-labeler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmate-desktop/mate-rr-labeler.c b/libmate-desktop/mate-rr-labeler.c index 83357c6..9424eb2 100644 --- a/libmate-desktop/mate-rr-labeler.c +++ b/libmate-desktop/mate-rr-labeler.c @@ -451,7 +451,7 @@ create_label_window (MateRRLabeler *labeler, MateRROutputInfo *output, GdkColor * used as an adjective, not as a verb. For example, the Spanish * translation could be "Pantallas en Espejo", *not* "Espejar Pantallas". */ - display_name = _("Mirror Screens"); + display_name = g_strdup_printf (_("Mirror Screens")); str = g_strdup_printf ("%s", display_name); } else { display_name = g_strdup_printf ("%s\n%s", mate_rr_output_info_get_display_name (output), mate_rr_output_info_get_name (output)); -- cgit v1.2.1