diff options
author | Sergio Villar Senin <svillar@igalia.com> | 2013-06-17 17:36:06 +0800 |
---|---|---|
committer | Sergio Villar Senin <svillar@igalia.com> | 2013-06-17 17:36:06 +0800 |
commit | e7132d317edd5acd610ba4f12a98bffd404dd5d3 (patch) | |
tree | 5bb5c3306ce1eb5aa3074b77de1445f45e174fe8 | |
parent | 5bf71aaa68f405240e43e8365d6ec31df4e216f8 (diff) | |
download | gsoc2013-epiphany-e7132d317edd5acd610ba4f12a98bffd404dd5d3.tar gsoc2013-epiphany-e7132d317edd5acd610ba4f12a98bffd404dd5d3.tar.gz gsoc2013-epiphany-e7132d317edd5acd610ba4f12a98bffd404dd5d3.tar.bz2 gsoc2013-epiphany-e7132d317edd5acd610ba4f12a98bffd404dd5d3.tar.lz gsoc2013-epiphany-e7132d317edd5acd610ba4f12a98bffd404dd5d3.tar.xz gsoc2013-epiphany-e7132d317edd5acd610ba4f12a98bffd404dd5d3.tar.zst gsoc2013-epiphany-e7132d317edd5acd610ba4f12a98bffd404dd5d3.zip |
uri-tester: fixed a G_CRITICAL when regexp was NULL
Do not unconditionally unref the regexp in case of error because it could be
NULL.
-rw-r--r-- | embed/uri-tester.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embed/uri-tester.c b/embed/uri-tester.c index 7af0c56f4..1d1283fce 100644 --- a/embed/uri-tester.c +++ b/embed/uri-tester.c @@ -482,7 +482,7 @@ uri_tester_compile_regexp (UriTester *tester, { g_warning ("%s: %s", G_STRFUNC, error->message); g_error_free (error); - g_regex_unref (regex); + g_clear_pointer (®ex, g_regex_unref); return TRUE; } |