Enlightenment CVS committal Author : chaos Project : e17 Module : apps/evfs
Dir : e17/apps/evfs/src/common Modified Files: evfs_cleanup.c Log Message: * Do a few reaps if the object is a client =================================================================== RCS file: /cvs/e/e17/apps/evfs/src/common/evfs_cleanup.c,v retrieving revision 1.16 retrieving revision 1.17 diff -u -3 -r1.16 -r1.17 --- evfs_cleanup.c 21 Apr 2006 15:10:16 -0000 1.16 +++ evfs_cleanup.c 22 Apr 2006 03:16:58 -0000 1.17 @@ -124,7 +124,10 @@ { /*We don't want to free the operation - the command owns this, * unless we're a client*/ - /*FIXME identify if we're the client, and free */ + if (evfs_object_client_is_get()) { + IF_FREE(event->op->misc_str); + free(event->op); + } } void @@ -142,9 +145,19 @@ free(obj); } evas_list_free(event->meta->meta_list); - free(event->meta); - /*FIXME - id if client, free hash*/ + if (evfs_object_client_is_get()) { + Ecore_List* keys; + char* key; + keys = ecore_hash_keys(event->meta->meta_hash); + while ( (key = ecore_list_remove_first(keys))) { + ecore_hash_remove(event->meta->meta_hash, key); + free(key); + } + ecore_hash_destroy(event->meta->meta_hash); + ecore_list_destroy(keys); + } + free(event->meta); } void ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs