Enlightenment CVS committal
Author : doursse
Project : e17
Module : proto
Dir : e17/proto/edvi/src/bin
Modified Files:
edvi_ewl_test.c
Log Message:
fix leak when no valid file is opened. formatting
===================================================================
RCS file: /cvs/e/e17/proto/edvi/src/bin/edvi_ewl_test.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- edvi_ewl_test.c 20 Dec 2006 20:40:46 -0000 1.2
+++ edvi_ewl_test.c 20 Dec 2006 21:24:36 -0000 1.3
@@ -47,6 +47,7 @@
document = EWL_DVI (dvi)->dvi_document;
if (!document) {
printf ("The file %s can't be opened\n", argv[1]);
+ ecore_list_destroy (str_data);
ewl_main_quit ();
edvi_shutdown ();
return -1;
@@ -75,7 +76,6 @@
txt = strdup (row_text);
ecore_list_append(str_data, txt);
}
-
model = ewl_model_ecore_list_get();
view = ewl_label_view_get();
@@ -117,9 +117,9 @@
static void
_change_page_cb (Ewl_Widget *widget, void *ev_data, void *user_data)
{
- Ewl_Dvi *dvi;
- Ewl_List *list;
- Ecore_List *el;
+ Ewl_Dvi *dvi;
+ Ewl_List *list;
+ Ecore_List *el;
Ewl_Selection_Idx *idx;
list = EWL_LIST(widget);
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs