Enlightenment CVS committal Author : pfritz Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/bin Modified Files: main.c Log Message: check txt first before you deal with it =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/bin/main.c,v retrieving revision 1.46 retrieving revision 1.47 diff -u -3 -r1.46 -r1.47 --- main.c 6 Jan 2007 19:48:30 -0000 1.46 +++ main.c 8 Jan 2007 01:42:08 -0000 1.47 @@ -720,13 +720,15 @@ strncpy(source + len1, end + 1, len2 + 1); txt = ewl_io_manager_string_read(source, "text/c"); - ewl_text_wrap_set(EWL_TEXT(txt), EWL_TEXT_WRAP_WORD); - ewl_text_selectable_set(EWL_TEXT(txt), TRUE); - ewl_widget_show(txt); - if (txt) + + if (txt) { + ewl_text_wrap_set(EWL_TEXT(txt), EWL_TEXT_WRAP_WORD); + ewl_text_selectable_set(EWL_TEXT(txt), TRUE); ewl_container_child_append(EWL_CONTAINER(txtpane), txt); + ewl_widget_show(txt); - free(source); + free(source); + } } *start = tmp; ------------------------------------------------------------------------- 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