summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYeshwanth Reddivari <r.yeshwanth@samsung.com>2016-06-10 13:36:57 +0530
committerAmitesh Singh <amitesh.sh@samsung.com>2016-06-10 13:43:44 +0530
commit55135870ec54cba8f6d7db874f578eb0aca9d571 (patch)
treec9fc02a72df9ea025755222c187d65b9bc55e08e
parent1dbff7d2b80ab54f6bdde306888da3a0c5a208f4 (diff)
Label: Fix extra memory allocation of edje message.
Summary: Edje_Message_Float_Set struct is already allocating double and hence no need to add extra double allocation. Reviewers: Hermet, jpeg, cedric, singh.amitesh Reviewed By: singh.amitesh Differential Revision: https://phab.enlightenment.org/D4035
-rw-r--r--src/lib/elementary/elm_label.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elementary/elm_label.c b/src/lib/elementary/elm_label.c
index ebbce9b657..e1a35c5ced 100644
--- a/src/lib/elementary/elm_label.c
+++ b/src/lib/elementary/elm_label.c
@@ -154,7 +154,7 @@ _label_slide_change(Evas_Object *obj)
154 } 154 }
155 155
156 Edje_Message_Float_Set *msg = 156 Edje_Message_Float_Set *msg =
157 alloca(sizeof(Edje_Message_Float_Set) + (sizeof(double))); 157 alloca(sizeof(Edje_Message_Float_Set));
158 158
159 msg->count = 1; 159 msg->count = 1;
160 msg->val[0] = sd->slide_duration; 160 msg->val[0] = sd->slide_duration;