Enlightenment CVS committal

Author  : lordchaos
Project : e17
Module  : apps/evfs

Dir     : e17/apps/evfs/src/common


Modified Files:
        evfs_cleanup.c evfs_io.c 


Log Message:
* Removed several leaks

===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/evfs/src/common/evfs_cleanup.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -3 -r1.10 -r1.11
--- evfs_cleanup.c      20 Dec 2005 21:55:02 -0000      1.10
+++ evfs_cleanup.c      29 Dec 2005 10:59:00 -0000      1.11
@@ -4,6 +4,7 @@
        
        switch (command->type) {
                case EVFS_CMD_STARTMON_FILE:
+               default:
                        evfs_cleanup_file_command(command);
                        break;
        }
@@ -57,6 +58,14 @@
        }
 }
 
+void evfs_cleanup_file_uri_path(evfs_file_uri_path* path) {
+       if (path) {
+               if (path->files) free (path->files);
+               free(path);
+       }
+                                                                       
+}
+
 void evfs_cleanup_file_read_event(evfs_event* event) {
        if (event->data.bytes) 
                free(event->data.bytes);
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/evfs/src/common/evfs_io.c,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -3 -r1.35 -r1.36
--- evfs_io.c   27 Dec 2005 11:44:37 -0000      1.35
+++ evfs_io.c   29 Dec 2005 10:59:00 -0000      1.36
@@ -556,10 +556,6 @@
                                command->file_command.files[0] = path->files[0];
 
 
-                               
-
-                               free(path);
-
                        } else {
                                
                                //printf("we already have %d files\n", 
command->file_command.num_files);
@@ -572,7 +568,8 @@
                        }
                                                  
                        
-                       
+                       evfs_cleanup_file_uri_path(path);
+                               
                        
                }
                break;




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to