Enlightenment CVS committal

Author  : doursse
Project : e17
Module  : proto/edvi

Dir     : e17/proto/edvi/src/bin


Modified Files:
        edvi_esmart_test.c 


Log Message:
* src/bin/edvi_esmart_test.c: (main):
* src/lib/esmart_dvi.c: (esmart_dvi_file_set):
* src/lib/esmart_dvi.h:
esmart_dvi_file_set() returns a value hat indicates success
or failure. Fix a leak when this function is called several
times. Doc and test updated.

===================================================================
RCS file: /cvs/e/e17/proto/edvi/src/bin/edvi_esmart_test.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- edvi_esmart_test.c  13 Jul 2008 10:11:57 -0000      1.6
+++ edvi_esmart_test.c  14 Jul 2008 13:02:10 -0000      1.7
@@ -78,7 +78,13 @@
     return EXIT_FAILURE;
   }
 
-  esmart_dvi_file_set (o, argv[1]);
+  if (!esmart_dvi_file_set (o, argv[1])) {
+    evas_object_del (o);
+    ecore_evas_shutdown ();
+    ecore_shutdown ();
+    return EXIT_FAILURE;
+  }
+
   esmart_dvi_page_set (o, page_number);
   esmart_dvi_render (o);
   evas_object_move (o, 0, 0);



-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to