[sword-cvs] sword/utilities mod2zmod.cpp,1.21,1.22
sword@www.crosswire.org
sword@www.crosswire.org
Tue, 12 Aug 2003 13:30:03 -0700
Update of /usr/local/cvsroot/sword/utilities
In directory www:/tmp/cvs-serv23596/utilities
Modified Files:
mod2zmod.cpp
Log Message:
no message
Index: mod2zmod.cpp
===================================================================
RCS file: /usr/local/cvsroot/sword/utilities/mod2zmod.cpp,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- mod2zmod.cpp 1 Oct 2002 22:04:59 -0000 1.21
+++ mod2zmod.cpp 12 Aug 2003 20:30:01 -0000 1.22
@@ -140,8 +140,9 @@
break;
}
+ SWFilter *cipherFilter = 0;
if (!cipherKey.empty()) {
- SWFilter *cipherFilter = new CipherFilter(cipherKey.c_str());
+ cipherFilter = new CipherFilter(cipherKey.c_str());
outModule->AddRawFilter(cipherFilter);
}
@@ -185,5 +186,7 @@
}
delete outModule;
delete outModuleKey;
+ if (cipherFilter)
+ delete cipherFilter;
}