Enlightenment CVS committal
Author : doursse
Project : e17
Module : proto/epdf
Dir : e17/proto/epdf/src/bin
Modified Files:
epdf_esmart_test.c
Log Message:
* src/bin/epdf_esmart_test.c: (main):
* src/lib/esmart_pdf.c: (esmart_pdf_file_set):
* src/lib/esmart_pdf.h:
esmart_pdf_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/epdf/src/bin/epdf_esmart_test.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- epdf_esmart_test.c 22 May 2008 06:53:05 -0000 1.7
+++ epdf_esmart_test.c 14 Jul 2008 13:01:27 -0000 1.8
@@ -68,7 +68,13 @@
return EXIT_FAILURE;
}
- esmart_pdf_file_set (o, filename);
+ if (!esmart_pdf_file_set (o, filename)) {
+ evas_object_del (o);
+ ecore_evas_shutdown ();
+ ecore_shutdown ();
+ return EXIT_FAILURE;
+ }
+
esmart_pdf_page_set (o, page_number);
esmart_pdf_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
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs