Enlightenment CVS committal Author : titan Project : e17 Module : apps/ephoto
Dir : e17/apps/ephoto/src/bin Modified Files: ephoto_exif.c Log Message: Don't cast const char to char =================================================================== RCS file: /cvs/e/e17/apps/ephoto/src/bin/ephoto_exif.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- ephoto_exif.c 16 Feb 2007 05:06:34 -0000 1.2 +++ ephoto_exif.c 18 Feb 2007 00:17:17 -0000 1.3 @@ -56,22 +56,22 @@ /*Get the current image*/ static char *get_image(void) { - char *img; + const char *img; if (VISIBLE(fbox_vbox)) { - img = (char *)ewl_widget_name_get(currentf); + img = ewl_widget_name_get(currentf); } else if (VISIBLE(list_vbox)) { - img = (char *)ewl_widget_name_get(currenti); + img = ewl_widget_name_get(currenti); } else if (VISIBLE(edit_vbox)) { - img = (char *)ewl_image_file_path_get(EWL_IMAGE(eimage)); + img = ewl_image_file_path_get(EWL_IMAGE(eimage)); } - return img; + return strdup(img); } /*Close a dialog*/ @@ -123,6 +123,7 @@ ewl_mvc_data_set(EWL_MVC(w), values); ewl_widget_data_set(win, "list", values); ecore_hash_destroy(exif_info); + free(img); return; } @@ -177,6 +178,8 @@ ewl_widget_show(list); add_button(vbox, "Close", PACKAGE_DATA_DIR "/images/dialog-close.png", close_dialog, win); + + free(img); return; } ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs