Enlightenment CVS committal

Author  : lordchaos
Project : e17
Module  : proto

Dir     : e17/proto/entropy/src


Modified Files:
        entropy_core.c 


Log Message:
Few memory cleanups

===================================================================
RCS file: /cvsroot/enlightenment/e17/proto/entropy/src/entropy_core.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -3 -r1.11 -r1.12
--- entropy_core.c      29 Oct 2005 06:57:39 -0000      1.11
+++ entropy_core.c      29 Oct 2005 08:38:49 -0000      1.12
@@ -22,6 +22,8 @@
 static int requests = 0;
 static long file_cache_size = 0;
 
+#define FILE_FREE_QUEUE_SIZE 500;
+
 
 int ecore_timer_enterer(void* data) {
        return 1;
@@ -904,7 +906,9 @@
 
        if (listener) {
                listener->count--;
-               if (listener->count == 0 && 0) {
+               if (listener->count <= 0) {
+
+                       //printf("Freeing file '%s'\n", 
listener->file->filename);
 
                        /*This should be a seperate function*/
                        entropy_generic_file_destroy(listener->file);
@@ -914,7 +918,8 @@
                        free(md5);
 
                        file_cache_size--;
-               }
+
+               } 
        }
        UNLOCK(&core->file_cache_mutex);
 }




-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to