Enlightenment CVS committal

Author  : lordchaos
Project : e17
Module  : proto

Dir     : e17/proto/entropy/src/plugins


Modified Files:
        layout_ewl_simple.c structure_viewer.c thumbnail_generic.c 


Log Message:
Few memory cleanups

===================================================================
RCS file: 
/cvsroot/enlightenment/e17/proto/entropy/src/plugins/layout_ewl_simple.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -3 -r1.11 -r1.12
--- layout_ewl_simple.c 28 Oct 2005 23:08:58 -0000      1.11
+++ layout_ewl_simple.c 29 Oct 2005 08:38:49 -0000      1.12
@@ -414,6 +414,8 @@
 __destroy_main_window(Ewl_Widget *main_win, void *ev_data, void *user_data) {
        entropy_core* core = (entropy_core*)user_data;
        ewl_widget_destroy(main_win);
+
+       ewl_shutdown();
        ewl_main_quit();
 
        entropy_core_destroy(core);
===================================================================
RCS file: 
/cvsroot/enlightenment/e17/proto/entropy/src/plugins/structure_viewer.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- structure_viewer.c  28 Oct 2005 23:08:58 -0000      1.6
+++ structure_viewer.c  29 Oct 2005 08:38:49 -0000      1.7
@@ -105,8 +105,6 @@
                ewl_tree_row_expand_set(row, EWL_TREE_NODE_EXPANDED);
                
        } else {
-               printf ("We don't own this row\n");
-               printf("Looked for file '(%s)(%s) (%p)'\n", event_file->path, 
event_file->filename,event_file);
                /*printf("---------------------------------------------> This 
row already has children!!\n");*/
        }
       }
===================================================================
RCS file: 
/cvsroot/enlightenment/e17/proto/entropy/src/plugins/thumbnail_generic.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- thumbnail_generic.c 29 Oct 2005 06:57:39 -0000      1.4
+++ thumbnail_generic.c 29 Oct 2005 08:38:49 -0000      1.5
@@ -37,26 +37,11 @@
 }
 
 entropy_thumbnail* entropy_thumbnail_create(entropy_generic_file* e_file) {
-       Imlib_Image image;
-       Imlib_Image thumbnail;
-       png_infop    info_ptr;
-       png_structp     png_ptr;
-       png_text        *text_ptr = NULL;
-       png_bytep    row_ptr,
-        row_data=NULL;
-       DATA32 *ptr = NULL;
-       char* key;
-       int i,w=64,h=64;
-         png_color_8  sig_bit;
        entropy_thumbnail* thumb_struct;
-       Ecore_List* keys;
        char thumb_path_and_name[255];
        char *pos;
-       FILE* fp = NULL;
-       char thumbname[255];
        Epsilon* e;
 
-       int iw,ih;
 
        
        strcpy(thumb_path_and_name, e_file->path);
@@ -74,8 +59,13 @@
        if (epsilon_exists(e)) {
                thumb_struct = entropy_thumbnail_new();
                strcpy(thumb_struct->thumbnail_filename, 
epsilon_thumb_file_get(e));
+               epsilon_free(e);
+               
                return thumb_struct;
-       } else return NULL;
+       } else {
+               epsilon_free(e);
+               return NULL;
+       }
 
        
 }




-------------------------------------------------------
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