aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2010-10-22 21:42:21 +0800
committerMilan Crha <mcrha@redhat.com>2010-10-22 21:42:21 +0800
commitf0714755e2fa8b06425907c2cf189abd3a1b7119 (patch)
tree0ac6ed485b978703a1dd6674ee427486556a8541 /widgets
parent2e0231be722d30edaa0b2f0353d110b1b56cf445 (diff)
downloadgsoc2013-evolution-f0714755e2fa8b06425907c2cf189abd3a1b7119.tar
gsoc2013-evolution-f0714755e2fa8b06425907c2cf189abd3a1b7119.tar.gz
gsoc2013-evolution-f0714755e2fa8b06425907c2cf189abd3a1b7119.tar.bz2
gsoc2013-evolution-f0714755e2fa8b06425907c2cf189abd3a1b7119.tar.lz
gsoc2013-evolution-f0714755e2fa8b06425907c2cf189abd3a1b7119.tar.xz
gsoc2013-evolution-f0714755e2fa8b06425907c2cf189abd3a1b7119.tar.zst
gsoc2013-evolution-f0714755e2fa8b06425907c2cf189abd3a1b7119.zip
Memory leaks around g_value_set_string
Diffstat (limited to 'widgets')
-rw-r--r--widgets/table/e-table-click-to-add.c2
-rw-r--r--widgets/table/e-table-field-chooser-dialog.c2
-rw-r--r--widgets/text/e-text.c6
3 files changed, 5 insertions, 5 deletions
diff --git a/widgets/table/e-table-click-to-add.c b/widgets/table/e-table-click-to-add.c
index 706146f2da..8f46620ae5 100644
--- a/widgets/table/e-table-click-to-add.c
+++ b/widgets/table/e-table-click-to-add.c
@@ -288,7 +288,7 @@ etcta_get_property (GObject *object, guint prop_id, GValue *value, GParamSpec *p
g_value_set_object (value, etcta->model);
break;
case PROP_MESSAGE:
- g_value_set_string (value, g_strdup (etcta->message));
+ g_value_set_string (value, etcta->message);
break;
case PROP_WIDTH:
g_value_set_double (value, etcta->width);
diff --git a/widgets/table/e-table-field-chooser-dialog.c b/widgets/table/e-table-field-chooser-dialog.c
index 440446e80f..a4e96ec99c 100644
--- a/widgets/table/e-table-field-chooser-dialog.c
+++ b/widgets/table/e-table-field-chooser-dialog.c
@@ -196,7 +196,7 @@ e_table_field_chooser_dialog_get_property (GObject *object, guint prop_id, GValu
ETableFieldChooserDialog *etfcd = E_TABLE_FIELD_CHOOSER_DIALOG (object);
switch (prop_id) {
case PROP_DND_CODE:
- g_value_set_string (value, g_strdup (etfcd->dnd_code));
+ g_value_set_string (value, etfcd->dnd_code);
break;
case PROP_FULL_HEADER:
g_value_set_object (value, etfcd->full_header);
diff --git a/widgets/text/e-text.c b/widgets/text/e-text.c
index 2ea35ed6c0..90eb4d01ca 100644
--- a/widgets/text/e-text.c
+++ b/widgets/text/e-text.c
@@ -1058,7 +1058,7 @@ e_text_get_property (GObject *object,
break;
case PROP_TEXT:
- g_value_set_string (value, g_strdup (text->text));
+ g_value_set_string (value, text->text);
break;
case PROP_BOLD:
@@ -1130,7 +1130,7 @@ e_text_get_property (GObject *object,
break;
case PROP_ELLIPSIS:
- g_value_set_string (value, g_strdup (text->ellipsis));
+ g_value_set_string (value, text->ellipsis);
break;
case PROP_LINE_WRAP:
@@ -1138,7 +1138,7 @@ e_text_get_property (GObject *object,
break;
case PROP_BREAK_CHARACTERS:
- g_value_set_string (value, g_strdup (text->break_characters));
+ g_value_set_string (value, text->break_characters);
break;
case PROP_MAX_LINES: