Explicitly initialize the deleted flag for the timer, idler and job objects.
authorTilman Sauerbeck <tilman@code-monkey.de>
Thu, 12 Aug 2004 20:08:13 +0000 (20:08 +0000)
committerTilman Sauerbeck <tilman@code-monkey.de>
Thu, 12 Aug 2004 20:08:13 +0000 (20:08 +0000)
src/ecore/rb_idler.c
src/ecore/rb_timer.c
src/ecore_job/rb_job.c

index 05550fd6f9786584271e6be0babbb2edc1392f29..2549c71b85126ff7bb571202538b57e14a5e1453 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: rb_idler.c 60 2004-08-10 14:12:36Z tilman $
+ * $Id: rb_idler.c 67 2004-08-12 20:08:13Z tilman $
  *
  * Copyright (C) 2004 Tilman Sauerbeck (tilman at code-monkey de)
  *
@@ -83,6 +83,7 @@ static VALUE c_new (VALUE klass)
        ecore_init ();
 
        idler->callback = rb_block_proc ();
+       idler->deleted = false;
        idler->real = ecore_idler_add (on_idler, idler);
 
        rb_obj_call_init (self, 0, NULL);
index 55b4a393bb74a86b3ef1954f4a22c6d5de5fedc2..a021106f2cc5d7bcfe917cfac8e2619280e27425 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: rb_timer.c 60 2004-08-10 14:12:36Z tilman $
+ * $Id: rb_timer.c 67 2004-08-12 20:08:13Z tilman $
  *
  * Copyright (C) 2004 Tilman Sauerbeck (tilman at code-monkey de)
  *
@@ -83,6 +83,7 @@ static VALUE c_new (VALUE klass, VALUE interval)
        ecore_init ();
 
        timer->callback = rb_block_proc ();
+       timer->deleted = false;
        timer->real = ecore_timer_add (NUM2DBL (interval),
                                       on_timer, timer);
 
index e6d93f0c0a664ae2ebc96409802ad48090f576c2..516ceccc1a60e888c99505a94165bdc63e2541a6 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: rb_job.c 60 2004-08-10 14:12:36Z tilman $
+ * $Id: rb_job.c 67 2004-08-12 20:08:13Z tilman $
  *
  * Copyright (C) 2004 Tilman Sauerbeck (tilman at code-monkey de)
  *
@@ -75,6 +75,7 @@ static VALUE c_new (VALUE klass)
        ecore_init ();
 
        job->callback = rb_block_proc ();
+       job->deleted = false;
        job->real = ecore_job_add (on_job, job);
 
        rb_obj_call_init (self, 0, NULL);