[sword-svn] r3210 - trunk/utilities

scribe at crosswire.org scribe at crosswire.org
Wed Apr 30 22:11:59 MST 2014


Author: scribe
Date: 2014-04-30 22:11:59 -0700 (Wed, 30 Apr 2014)
New Revision: 3210

Modified:
   trunk/utilities/imp2ld.cpp
Log:
improvements

Modified: trunk/utilities/imp2ld.cpp
===================================================================
--- trunk/utilities/imp2ld.cpp	2014-05-01 05:11:44 UTC (rev 3209)
+++ trunk/utilities/imp2ld.cpp	2014-05-01 05:11:59 UTC (rev 3210)
@@ -154,6 +154,10 @@
 		exit(-2);
 	}
 
+	if(!infile.is_open()) {
+		std::cout << "Unable to open file " << inFileName << std::endl;
+		return -1;
+	}
 
 	SWModule *mod = 0;
 	SWKey *key, *linkKey;
@@ -279,7 +283,6 @@
 	infile.close();
 
 	delete linkKey;
-	delete key;
 	delete mod;
 
 	return 0;




More information about the sword-cvs mailing list