From 1d0dabd892ec96489ad98bc4ceb0f9acfc21e341 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Thu, 18 Jan 2001 12:13:00 +0000 Subject: [PATCH] regex: minor fixes [SVN r8638] --- demo/regress/regex_test.cpp | 1 - demo/regress/wregex_test.cpp | 1 - src/posix_api.cpp | 1 - src/wide_posix_api.cpp | 1 - 4 files changed, 4 deletions(-) diff --git a/demo/regress/regex_test.cpp b/demo/regress/regex_test.cpp index 62f18130..48cbd3e1 100644 --- a/demo/regress/regex_test.cpp +++ b/demo/regress/regex_test.cpp @@ -196,6 +196,5 @@ template test_string_type regex_merge(const test_string_type&, #include "libs/regex/src/regex.cpp" #include "libs/regex/src/regex_debug.cpp" #include "libs/regex/src/regex_synch.cpp" -#include "libs/regex/src/wide_posix_api.cpp" diff --git a/demo/regress/wregex_test.cpp b/demo/regress/wregex_test.cpp index 7c10baf7..783f64cc 100644 --- a/demo/regress/wregex_test.cpp +++ b/demo/regress/wregex_test.cpp @@ -188,7 +188,6 @@ template test_string_type regex_merge(const test_string_type&, #include "libs/regex/src/c_regex_traits_common.cpp" #include "libs/regex/src/cregex.cpp" #include "libs/regex/src/fileiter.cpp" -#include "libs/regex/src/posix_api.cpp" #include "libs/regex/src/regex.cpp" #include "libs/regex/src/regex_debug.cpp" #include "libs/regex/src/regex_synch.cpp" diff --git a/src/posix_api.cpp b/src/posix_api.cpp index acdbf010..bbc7266f 100644 --- a/src/posix_api.cpp +++ b/src/posix_api.cpp @@ -45,7 +45,6 @@ BOOST_RE_IX_DECL int BOOST_RE_CCALL regcompA(regex_tA* expression, const char* p expression->guts = new regex(); } catch(...) { - delete (regex*)(expression->guts); return REG_ESPACE; } } diff --git a/src/wide_posix_api.cpp b/src/wide_posix_api.cpp index ae4321d8..9f7e0dc7 100644 --- a/src/wide_posix_api.cpp +++ b/src/wide_posix_api.cpp @@ -55,7 +55,6 @@ BOOST_RE_IX_DECL int BOOST_RE_CCALL regcompW(regex_tW* expression, const wchar_t expression->guts = new wregex(); } catch(...) { - delete (wregex*)(expression->guts); return REG_ESPACE; } }