Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/ecore

Dir     : e17/libs/ecore/src/lib/ecore_job


Modified Files:
        ecore_job.c 


Log Message:


working on fixign this weird job loss....

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_job/ecore_job.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- ecore_job.c 12 May 2004 14:40:07 -0000      1.5
+++ ecore_job.c 14 Jan 2005 04:50:08 -0000      1.6
@@ -4,6 +4,7 @@
 #include "Ecore_Job.h"
 
 static int _ecore_job_event_handler(void *data, int type, void *ev);
+static void _ecore_job_event_free(void *data, void *ev);
     
 static int ecore_event_job_type = 0;
 
@@ -31,7 +32,7 @@
    job = calloc(1, sizeof(Ecore_Job));
    if (!job) return NULL;
    ECORE_MAGIC_SET(job, ECORE_MAGIC_JOB);
-   job->event = ecore_event_add(ecore_event_job_type, job, NULL, NULL);
+   job->event = ecore_event_add(ecore_event_job_type, job, 
_ecore_job_event_free, NULL);
    if (!job->event)
      {
        free(job);
@@ -74,3 +75,12 @@
    job->func(job->data);
    return 0;
 }
+
+static void
+_ecore_job_event_free(void *data, void *ev)
+{
+   Ecore_Job *job;
+   
+   job = ev;
+   free(ev);
+}




-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to