Enlightenment CVS committal Author : pfritz Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/bin Modified Files: main.c Log Message: the text must be free anyway =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/bin/main.c,v retrieving revision 1.47 retrieving revision 1.48 diff -u -3 -r1.47 -r1.48 --- main.c 8 Jan 2007 01:42:08 -0000 1.47 +++ main.c 8 Jan 2007 02:53:27 -0000 1.48 @@ -690,12 +690,12 @@ if (!start) { txt = ewl_io_manager_string_read(str, "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_widget_show(txt); ewl_container_child_append(EWL_CONTAINER(txtpane), txt); - + } ewl_text_clear(EWL_TEXT(tutorial)); return; } @@ -726,9 +726,9 @@ 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