summaryrefslogtreecommitdiff
path: root/project2/cgi
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2014-01-10 21:37:46 +0000
committerrandomdan <randomdan@localhost>2014-01-10 21:37:46 +0000
commit73eb737f5da7a209ed038b0c27a788595a652617 (patch)
tree020b59a0e888476cac6181296f1240f6b94b035f /project2/cgi
parentRemove boost::format bloat by centralizeing construction (diff)
downloadproject2-73eb737f5da7a209ed038b0c27a788595a652617.tar.bz2
project2-73eb737f5da7a209ed038b0c27a788595a652617.tar.xz
project2-73eb737f5da7a209ed038b0c27a788595a652617.zip
Improvements to popenrw and add popenrwe for the stderr pipe too
Improve exception when loading a library fails Fix a handful of ingeniously located memory leaks
Diffstat (limited to 'project2/cgi')
-rw-r--r--project2/cgi/testCgi.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/project2/cgi/testCgi.cpp b/project2/cgi/testCgi.cpp
index 80c3f01..6644102 100644
--- a/project2/cgi/testCgi.cpp
+++ b/project2/cgi/testCgi.cpp
@@ -32,6 +32,11 @@ class TestInput : public cgicc::CgiInput, public CgiEnvInput {
OptionsSources::Add("_2", new CommandLineArguments(argc, argv,
[](const char * url) { urls.push_back(url); }));
}
+ ~TestInput()
+ {
+ OptionsSources::Remove("_1");
+ OptionsSources::Remove("_2");
+ }
std::string getenv(const std::string & varName) const
{