[epiphany/gnome-3-10] uri-tester: Avoid critical when unref-ing NULL regex
- From: Andres Gomez <agomez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/gnome-3-10] uri-tester: Avoid critical when unref-ing NULL regex
- Date: Wed, 27 Nov 2013 11:21:53 +0000 (UTC)
commit 578ae7f1f66236d5dfb3e68976219db64d56a22b
Author: Andres Gomez <agomez igalia com>
Date: Wed Nov 27 12:51:49 2013 +0200
uri-tester: Avoid critical when unref-ing NULL regex
When a regex compilation fails we get an error and NULL. No need to
unref the NULL pointer.
https://bugzilla.gnome.org/show_bug.cgi?id=719405
embed/uri-tester.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/embed/uri-tester.c b/embed/uri-tester.c
index 399b1c6..9fb8388 100644
--- a/embed/uri-tester.c
+++ b/embed/uri-tester.c
@@ -482,7 +482,6 @@ uri_tester_compile_regexp (UriTester *tester,
{
g_warning ("%s: %s", G_STRFUNC, error->message);
g_error_free (error);
- g_clear_pointer (®ex, g_regex_unref);
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]