Commit 3101ac09 authored by Andres Gomez's avatar Andres Gomez
Browse files

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
parent 42b974c9
......@@ -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 (&regex, g_regex_unref);
return TRUE;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment