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