Explicitly initialize the deleted flag for the timer, idler and job objects.
[ruby-ecore.git] / src / ecore / rb_idler.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);