aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergio Villar Senin <svillar@igalia.com>2013-06-17 17:36:06 +0800
committerSergio Villar Senin <svillar@igalia.com>2013-06-17 17:36:06 +0800
commite7132d317edd5acd610ba4f12a98bffd404dd5d3 (patch)
tree5bb5c3306ce1eb5aa3074b77de1445f45e174fe8
parent5bf71aaa68f405240e43e8365d6ec31df4e216f8 (diff)
downloadgsoc2013-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.c2
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 (&regex, g_regex_unref);
return TRUE;
}