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