mirror of
https://github.com/red0124/ssp.git
synced 2025-12-14 21:59:55 +01:00
fix minor memory leask
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
test_sources = files([
|
||||
'test_main.cpp',
|
||||
#'test_splitter.cpp',
|
||||
#'test_converter.cpp',
|
||||
'test_splitter.cpp',
|
||||
'test_converter.cpp',
|
||||
'test_parser.cpp',
|
||||
#'test_extractions.cpp',
|
||||
'test_extractions.cpp',
|
||||
])
|
||||
|
||||
doctest_proj = subproject('doctest')
|
||||
|
||||
@@ -108,6 +108,8 @@ TEST_CASE("parser test various cases") {
|
||||
make_and_write(f.name, data);
|
||||
{
|
||||
ss::parser<ss::string_error> p{f.name, ","};
|
||||
ss::parser p0{std::move(p)};
|
||||
p = std::move(p0);
|
||||
std::vector<X> i;
|
||||
|
||||
ss::parser<ss::string_error> p2{f.name, ","};
|
||||
|
||||
Reference in New Issue
Block a user