Enlightenment CVS committal Author : jethomas Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/lib Modified Files: ewl_filelist_model.c ewl_filelist_model.h Log Message: Check if type is correct =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_filelist_model.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- ewl_filelist_model.c 12 Nov 2007 03:07:21 -0000 1.2 +++ ewl_filelist_model.c 12 Nov 2007 03:18:56 -0000 1.3 @@ -345,11 +345,17 @@ * @internal */ unsigned int -ewl_filelist_model_data_unref(Ewl_Filelist_Directory *dir) +ewl_filelist_model_data_unref(void *data) { + Ewl_Filelist_Directory *dir; + DENTER_FUNCTION(DLEVEL_STABLE); - DCHECK_PARAM_PTR_RET("dir", dir, FALSE); + DCHECK_PARAM_PTR_RET("data", data, FALSE); + DCHECK_TYPE_RET("data", data, EWL_FILELIST_DIRECTORY_TYPE, + FALSE); + dir = data; + ecore_string_release(dir->name); ecore_list_destroy(dir->files); ecore_list_destroy(dir->dirs); =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_filelist_model.h,v retrieving revision 1.3 retrieving revision 1.4 diff -u -3 -r1.3 -r1.4 --- ewl_filelist_model.h 12 Nov 2007 03:07:21 -0000 1.3 +++ ewl_filelist_model.h 12 Nov 2007 03:18:56 -0000 1.4 @@ -77,7 +77,7 @@ unsigned int row); void *ewl_filelist_model_data_expansion_data_fetch(void *data, unsigned int parent); -unsigned int ewl_filelist_model_data_unref(Ewl_Filelist_Directory *dir); +unsigned int ewl_filelist_model_data_unref(void *data); int ewl_filelist_model_column_sortable(void *data, unsigned int column); ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs