summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonsta <[email protected]>2015-11-13 11:14:45 +0300
committermonsta <[email protected]>2015-11-13 11:14:45 +0300
commit06ccb7a39e494e731436f7e6de044ff113c14896 (patch)
treea71edca84bedddcfa0fd82268ff9575aad065100
parente552e1e7362ab74b3cf7a784d8000d5f56611b8b (diff)
downloadmate-desktop-06ccb7a39e494e731436f7e6de044ff113c14896.tar.bz2
mate-desktop-06ccb7a39e494e731436f7e6de044ff113c14896.tar.xz
display properties: don't try to free a string literal (fix crash)
crash introduced in https://github.com/mate-desktop/mate-desktop/commit/11757da17e9fcdd33474aaa342bf4b6a2daf82d0
-rw-r--r--libmate-desktop/mate-rr-labeler.c2
1 files changed, 1 insertions, 1 deletions
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 ("<b>%s</b>", display_name);
} else {
display_name = g_strdup_printf ("<b>%s</b>\n<small>%s</small>", mate_rr_output_info_get_display_name (output), mate_rr_output_info_get_name (output));