Valgrind says it's worth 16 bytes in the "definitely lost" category.


Andrew
--- libwpd-0.8.6.original/src/conv/raw/main.cpp	2006-07-14 14:34:44.000000000 -0600
+++ libwpd-0.8.6/src/conv/raw/main.cpp	2006-09-04 16:22:37.000000000 -0600
@@ -83,6 +83,7 @@
 	if (confidence == WPD_CONFIDENCE_NONE || confidence == WPD_CONFIDENCE_POOR)
 	{
 		printf("ERROR: Unsupported file format!\n");
+		delete gsfInput;
 		return 1;
 	}
 	
--- libwpd-0.8.6.original/src/conv/html/main.cpp	2006-09-04 16:26:17.000000000 -0600
+++ libwpd-0.8.6/src/conv/html/main.cpp	2006-09-04 16:26:36.000000000 -0600
@@ -53,6 +53,7 @@
 	if (confidence == WPD_CONFIDENCE_NONE || confidence == WPD_CONFIDENCE_POOR)
 	{
 		printf("ERROR: Unsupported file format!\n");
+		delete gsfInput;
 		return 1;
 	}
 
--- libwpd-0.8.6.original/src/conv/text/main.cpp	2006-09-04 16:26:21.000000000 -0600
+++ libwpd-0.8.6/src/conv/text/main.cpp	2006-09-04 16:26:47.000000000 -0600
@@ -73,6 +73,7 @@
 	if (confidence == WPD_CONFIDENCE_NONE || confidence == WPD_CONFIDENCE_POOR)
 	{
 		printf("ERROR: Unsupported file format!\n");
+		delete gsfInput;
 		return 1;
 	}
 	
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Libwpd-devel mailing list
Libwpd-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libwpd-devel

Reply via email to