added FunctionBase::Clear() which is called at the end of a request

This commit is contained in:
2021-06-20 20:47:59 +02:00
parent f35840e7de
commit 801fc062ef
5 changed files with 21 additions and 6 deletions

View File

@@ -36,7 +36,7 @@
#include "log.h"
#include "plugin.h"
#include "misc.h"
#include "functions/functionbase.h"
namespace Winix
@@ -100,6 +100,9 @@ void Request::Clear()
RemovePostFileTmp(post_file_tab);
ClearOutputStreams();
if( function )
function->Clear();
post_tab.clear();
post_file_tab.clear();
cookie_tab.clear();
@@ -131,7 +134,7 @@ void Request::Clear()
dir_tab.clear();
last_item = &item;
is_item = false;
function = 0;
function = nullptr;
param_tab.clear();
anchor.clear();