@@ -124,6 +124,7 @@ void UnitTestParsingRequestParams::executeTest() {
124124 compare (" checkInputParams0 id" , sId , " id1" );
125125 std::string sMethod = jsonResponse[" method" ];
126126 compare (" checkInputParams0 method" , sMethod , " game_create" );
127+ delete pRequest;
127128 }
128129
129130 // checkInputParams - paramer datatype string
@@ -155,6 +156,7 @@ void UnitTestParsingRequestParams::executeTest() {
155156 compare (" checkInputParams1 id" , sId , " id1" );
156157 std::string sMethod = jsonResponse[" method" ];
157158 compare (" checkInputParams1 method" , sMethod , " game_create" );
159+ delete pRequest;
158160 }
159161
160162 // checkInputParams - parameter data type int
@@ -186,6 +188,7 @@ void UnitTestParsingRequestParams::executeTest() {
186188 compare (" checkInputParams2 id" , sId , " id1" );
187189 std::string sMethod = jsonResponse[" method" ];
188190 compare (" checkInputParams2 method" , sMethod , " game_create" );
191+ delete pRequest;
189192 }
190193
191194 // checkInputParams - parameter data type boolean
@@ -223,6 +226,7 @@ void UnitTestParsingRequestParams::executeTest() {
223226 compare (" checkInputParams3 id" , sId , " id1" );
224227 std::string sMethod = jsonResponse[" method" ];
225228 compare (" checkInputParams3 method" , sMethod , " game_create" );
229+ delete pRequest;
226230 }
227231
228232 // checkInputParams - parameter data type json
@@ -259,6 +263,7 @@ void UnitTestParsingRequestParams::executeTest() {
259263 compare (" checkInputParams4 id" , sId , " id1" );
260264 std::string sMethod = jsonResponse[" method" ];
261265 compare (" checkInputParams4 method" , sMethod , " game_create" );
266+ delete pRequest;
262267 }
263268
264269 // checkInputParams - extra field
@@ -297,6 +302,7 @@ void UnitTestParsingRequestParams::executeTest() {
297302 compare (" checkInputParams5 id" , sId , " id1" );
298303 std::string sMethod = jsonResponse[" method" ];
299304 compare (" checkInputParams5 method" , sMethod , " game_create" );
305+ delete pRequest;
300306 }
301307
302308 // checkInputParams - string validator
@@ -336,6 +342,7 @@ void UnitTestParsingRequestParams::executeTest() {
336342 compare (" checkInputParams6 id" , sId , " id1" );
337343 std::string sMethod = jsonResponse[" method" ];
338344 compare (" checkInputParams6 method" , sMethod , " game_create" );
345+ delete pRequest;
339346 }
340347
341348 // checkInputParams - int validator
@@ -375,6 +382,7 @@ void UnitTestParsingRequestParams::executeTest() {
375382 compare (" checkInputParams7 id" , sId , " id1" );
376383 std::string sMethod = jsonResponse[" method" ];
377384 compare (" checkInputParams7 method" , sMethod , " game_create" );
385+ delete pRequest;
378386 }
379387
380388 // checkInputParams - json validator
@@ -414,7 +422,12 @@ void UnitTestParsingRequestParams::executeTest() {
414422 compare (" checkInputParams8 id" , sId , " id1" );
415423 std::string sMethod = jsonResponse[" method" ];
416424 compare (" checkInputParams8 method" , sMethod , " game_create" );
425+ delete pRequest;
417426 }
427+
428+ delete pHandlergameCreate;
429+ delete pWebSocketServer;
430+ delete pFakeClient;
418431}
419432
420433// ---------------------------------------------------------------------
0 commit comments