[sword-svn] r3438 - trunk/src/modules/lexdict

scribe at crosswire.org scribe at crosswire.org
Fri Oct 21 21:02:49 MST 2016


Author: scribe
Date: 2016-10-21 21:02:49 -0700 (Fri, 21 Oct 2016)
New Revision: 3438

Modified:
   trunk/src/modules/lexdict/swld.cpp
Log:
fixed delete to add [] for memory which was allocated as an array

Modified: trunk/src/modules/lexdict/swld.cpp
===================================================================
--- trunk/src/modules/lexdict/swld.cpp	2016-10-22 03:50:02 UTC (rev 3437)
+++ trunk/src/modules/lexdict/swld.cpp	2016-10-22 04:02:49 UTC (rev 3438)
@@ -108,7 +108,7 @@
 	if (strongsPadding) strongsPad(buf);
 	
 	bool retVal = !strcmp(buf, getKeyForEntry(getEntryForKey(buf)));
-	delete buf;
+	delete [] buf;
 
 	return retVal;
 }




More information about the sword-cvs mailing list