Enlightenment CVS committal
Author : tsauerbeck
Project : e17
Module : libs/edje
Dir : e17/libs/edje/src/lib
Modified Files:
edje_var.c
Log Message:
only increment id_count if we could allocate memory for a new timer/animator
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/edje/src/lib/edje_var.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -3 -r1.11 -r1.12
--- edje_var.c 30 Oct 2004 12:29:43 -0000 1.11
+++ edje_var.c 29 Dec 2004 19:10:57 -0000 1.12
@@ -929,10 +929,9 @@
if (!ed->var_pool) return 0;
fn = embryo_program_function_find(ed->collection->script, fname);
if (fn == EMBRYO_FUNCTION_NONE) return 0;
- ed->var_pool->id_count++;
et = calloc(1, sizeof(Edje_Var_Timer));
if (!et) return 0;
- et->id = ed->var_pool->id_count;
+ et->id = ++ed->var_pool->id_count;
et->edje = ed;
et->func = fn;
et->val = val;
@@ -977,12 +976,11 @@
if (len <= 0.0) return 0;
fn = embryo_program_function_find(ed->collection->script, fname);
if (fn == EMBRYO_FUNCTION_NONE) return 0;
- ed->var_pool->id_count++;
ea = calloc(1, sizeof(Edje_Var_Animator));
if (!ea) return 0;
ea->start = ecore_time_get();
ea->len = len;
- ea->id = ed->var_pool->id_count;
+ ea->id = ++ed->var_pool->id_count;
ea->edje = ed;
ea->func = fn;
ea->val = val;
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs