validate: Remove G_REGEX_OPTIMIZE usage

It's not needed and causes issues with valgrind (which doesn't support jit)

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7112>
This commit is contained in:
Jordan Petridis 2023-10-23 20:12:29 +03:00 committed by GStreamer Marge Bot
parent b4ebf52f06
commit 60454336c8

View file

@ -729,9 +729,9 @@ gst_validate_report_init (void)
} }
#ifndef GST_DISABLE_GST_DEBUG #ifndef GST_DISABLE_GST_DEBUG
if (!newline_regex) if (!newline_regex) {
newline_regex = newline_regex = g_regex_new ("\n", G_REGEX_MULTILINE, 0, NULL);
g_regex_new ("\n", G_REGEX_OPTIMIZE | G_REGEX_MULTILINE, 0, NULL); }
#endif #endif
} }
@ -1234,8 +1234,7 @@ gst_validate_printf_valist (gpointer source, const gchar * format, va_list args)
g_free (tmp); g_free (tmp);
if (!newline_regex) if (!newline_regex)
newline_regex = newline_regex = g_regex_new ("\n", G_REGEX_MULTILINE, 0, NULL);
g_regex_new ("\n", G_REGEX_OPTIMIZE | G_REGEX_MULTILINE, 0, NULL);
#ifndef GST_DISABLE_GST_DEBUG #ifndef GST_DISABLE_GST_DEBUG
{ {