summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonsta <[email protected]>2015-11-13 10:44:00 +0300
committermonsta <[email protected]>2015-11-13 10:44:00 +0300
commit93ceed58e923c41814b05524c02faf03adf3d761 (patch)
tree4b0b3502774a61ac4327520529864423846d4753
parentfa57391891309545aebc94fae4d79f6fae683659 (diff)
downloadmate-control-center-93ceed58e923c41814b05524c02faf03adf3d761.tar.bz2
mate-control-center-93ceed58e923c41814b05524c02faf03adf3d761.tar.xz
display properties: don't try to free a string literal (fix crash)
crash introduced in https://github.com/mate-desktop/mate-control-center/commit/c6935f255ea711557c3c5e0e3ae8439e59c9a7aa
-rw-r--r--capplets/display/xrandr-capplet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/capplets/display/xrandr-capplet.c b/capplets/display/xrandr-capplet.c
index 126084ed..04360c4c 100644
--- a/capplets/display/xrandr-capplet.c
+++ b/capplets/display/xrandr-capplet.c
@@ -1665,7 +1665,7 @@ get_display_name (App *app,
* used as an adjective, not as a verb. For example, the Spanish
* translation could be "Pantallas en Espejo", *not* "Espejar Pantallas".
*/
- text = _("Mirror Screens");
+ text = g_strdup_printf (_("Mirror Screens"));
}
else {
text = 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));