talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 163db8ed1457cc93f1f110f893bf932e386d94d8
parent de1fd9b0e2b3569cdaae2d6578c526a3f7c1880a
Author: wwp <subscript@free.fr>
Date:   Sun, 25 Feb 2024 15:49:03 +0100

Fix bug #4746: matcher: remove incorrect condition in matcherprop_free
In fact, Regex'es have been reenabled in Windows since 2015 (Andrej, 22a32c92603ba73754af64cd3b40de3d7c2f752a)
after they've been disabled in 2013 (Colin, 7f27738df23b2098214d956e6b41149c1a158404);
reenable everything of their handling in matcher.[ch].

Diffstat:
Msrc/matcher.c | 6------
1 file changed, 0 insertions(+), 6 deletions(-)

diff --git a/src/matcher.c b/src/matcher.c @@ -320,9 +320,7 @@ MatcherProp *matcherprop_new(gint criteria, const gchar *header, prop->expr = expr != NULL ? g_strdup(expr) : NULL; prop->matchtype = matchtype; -#ifndef G_OS_WIN32 prop->preg = NULL; -#endif prop->casefold_expr = NULL; prop->value = value; prop->error = 0; @@ -340,13 +338,11 @@ void matcherprop_free(MatcherProp *prop) { g_free(prop->expr); g_free(prop->header); -#ifndef G_OS_WIN32 if (prop->preg != NULL) { regfree(prop->preg); g_free(prop->preg); } g_free(prop->casefold_expr); -#endif g_free(prop); } @@ -366,9 +362,7 @@ MatcherProp *matcherprop_copy(const MatcherProp *src) prop->expr = src->expr ? g_strdup(src->expr) : NULL; prop->matchtype = src->matchtype; -#ifndef G_OS_WIN32 prop->preg = NULL; /* will be re-evaluated */ -#endif prop->casefold_expr = src->casefold_expr ? g_strdup(src->casefold_expr) : NULL; prop->value = src->value; prop->error = src->error;