[sword-cvs] sword/src/modules swmodule.cpp,1.46,1.47
sword@www.crosswire.org
sword@www.crosswire.org
Mon, 24 Feb 2003 21:12:49 -0700
Update of /usr/local/cvsroot/sword/src/modules
In directory www:/tmp/cvs-serv2325/src/modules
Modified Files:
swmodule.cpp
Log Message:
no message
Index: swmodule.cpp
===================================================================
RCS file: /usr/local/cvsroot/sword/src/modules/swmodule.cpp,v
retrieving revision 1.46
retrieving revision 1.47
diff -C2 -d -r1.46 -r1.47
*** swmodule.cpp 20 Feb 2003 07:25:20 -0000 1.46
--- swmodule.cpp 25 Feb 2003 04:12:47 -0000 1.47
***************
*** 33,40 ****
SWModule::SWModule(const char *imodname, const char *imoddesc, SWDisplay *idisp, char *imodtype, SWTextEncoding encoding, SWTextDirection direction, SWTextMarkup markup, const char* imodlang) {
key = CreateKey();
! entrybuf = new char [1];
! *entrybuf = 0;
config = &ownConfig;
- entrybufallocsize = 0;
modname = 0;
error = 0;
--- 33,38 ----
SWModule::SWModule(const char *imodname, const char *imoddesc, SWDisplay *idisp, char *imodtype, SWTextEncoding encoding, SWTextDirection direction, SWTextMarkup markup, const char* imodlang) {
key = CreateKey();
! entryBuf = "";
config = &ownConfig;
modname = 0;
error = 0;
***************
*** 67,72 ****
SWModule::~SWModule()
{
- if (entrybuf)
- delete [] entrybuf;
if (modname)
delete [] modname;
--- 65,68 ----