summaryrefslogtreecommitdiff
path: root/src/bin/e_editable.c
diff options
context:
space:
mode:
authorSebastian Dransfeld <sd@tango.flipp.net>2007-04-05 18:11:42 +0000
committerSebastian Dransfeld <sd@tango.flipp.net>2007-04-05 18:11:42 +0000
commit4880565d3a6cec8652676c46ea4c3c71c232466c (patch)
treebd16720f4b5c38292e41da6ccd86706a6a342b83 /src/bin/e_editable.c
parent69d586e5dd7774facaa8c9d8f572bd2f3fe07f61 (diff)
downloadenlightenment-4880565d3a6cec8652676c46ea4c3c71c232466c.tar.gz
Less memory allocation.
SVN revision: 29386
Diffstat (limited to 'src/bin/e_editable.c')
-rw-r--r--src/bin/e_editable.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/bin/e_editable.c b/src/bin/e_editable.c
index 12f60f3a3d..82569ea25b 100644
--- a/src/bin/e_editable.c
+++ b/src/bin/e_editable.c
@@ -112,21 +112,18 @@ e_editable_theme_set(Evas_Object *editable, const char *category, const char *gr
return;
if ((!category) || (!group))
return;
+ obj_group = alloca(strlen(group) + strlen("/selection") + 1);
/* Gets the theme for the text object */
- obj_group = malloc(strlen(group) + strlen("/text") + 1);
sprintf(obj_group, "%s/text", group);
e_theme_edje_object_set(sd->text_object, category, obj_group);
- free(obj_group);
sd->average_char_w = -1;
sd->average_char_h = -1;
/* Gets the theme for the cursor */
- obj_group = malloc(strlen(group) + strlen("/cursor") + 1);
sprintf(obj_group, "%s/cursor", group);
e_theme_edje_object_set(sd->cursor_object, category, obj_group);
- free(obj_group);
edje_object_size_min_get(sd->cursor_object, &sd->cursor_width, NULL);
if (sd->cursor_width < 1)
@@ -134,10 +131,8 @@ e_editable_theme_set(Evas_Object *editable, const char *category, const char *gr
/* Gets the theme for the selection */
- obj_group = malloc(strlen(group) + strlen("/selection") + 1);
sprintf(obj_group, "%s/selection", group);
e_theme_edje_object_set(sd->selection_object, category, obj_group);
- free(obj_group);
data = edje_object_data_get(sd->selection_object, "on_foreground");
if ((data) && (strcmp(data, "1") == 0))