Enlightenment CVS committal

Author  : lordchaos
Project : e17
Module  : proto

Dir     : e17/proto/entropy/src


Modified Files:
        entropy_core.c entropy_file.c 


Log Message:
* OOps - I broke the structure viewer's ability to display tar/bz2/etc trees in 
the last commit.  Fixed

===================================================================
RCS file: /cvsroot/enlightenment/e17/proto/entropy/src/entropy_core.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -3 -r1.18 -r1.19
--- entropy_core.c      9 Nov 2005 23:52:21 -0000       1.18
+++ entropy_core.c      10 Nov 2005 12:14:05 -0000      1.19
@@ -27,6 +27,11 @@
 #define FILE_FREE_QUEUE_SIZE 500;
 
 
+entropy_core* entropy_core_get_core() {
+       return core_core;
+}
+
+
 int ecore_timer_enterer(void* data) {
        return 1;
 }
@@ -300,7 +305,6 @@
                entropy_generic_file_destroy(listener->file);
                entropy_free(listener);
                ecore_hash_remove(core->file_interest_list, key);
-               free(key);
 
 
        }
@@ -925,7 +929,6 @@
                        free(listener);
 
                        ecore_hash_remove(core->file_interest_list, md5);
-                       free(md5);
 
                        file_cache_size--;
 
===================================================================
RCS file: /cvsroot/enlightenment/e17/proto/entropy/src/entropy_file.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- entropy_file.c      10 Nov 2005 11:38:05 -0000      1.5
+++ entropy_file.c      10 Nov 2005 12:14:05 -0000      1.6
@@ -23,6 +23,14 @@
                if (file->username) entropy_free(file->username);
                if (file->password) entropy_free(file->password);
 
+               /*If the file has a parent, remove a reference, because we 
added one when we got here..*/
+               if (file->parent) {
+                       //TODO fix this - we need to detatch this from 
threading issues*/
+                       
//entropy_core_file_cache_remove_reference(entropy_core_get_core(), 
file->parent->md5);
+               }
+
+               if (file->md5) entropy_free(file->md5);
+
 
                entropy_free(file);
 




-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to