regex: Don't leak internal PCRE options
authorChristian Persch <chpe@gnome.org>
Thu, 7 Jun 2012 16:11:49 +0000 (18:11 +0200)
committerChristian Persch <chpe@gnome.org>
Mon, 2 Jul 2012 13:59:39 +0000 (15:59 +0200)
commite5550a24db48ce6f67b0f3b8df9dc467087c941b
tree0fe0b3071b2032f88149d9bcfd3bf4a2c688d95d
parent26d91ddc08b41533a6952014fd9c19c80865e840
regex: Don't leak internal PCRE options

g_regex_get_compile_get_compile_flags() and g_regex_get_match_flags()
were leaking PCRE flags that don't exist in the corresponding
public GRegexCompileFlags and GRegexMatchFlags; this change masks
these internal flags.
glib/gregex.c
glib/tests/regex.c