1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-12-04 20:07:36 +00:00

application: use g_autoptr

This commit is contained in:
Evangelos Ribeiro Tzaras 2021-02-11 00:32:25 +01:00
parent 5d4b84470c
commit 46e4422026

View file

@ -175,10 +175,9 @@ static gboolean
check_dial_number (const gchar *number)
{
g_autoptr (GError) error = NULL;
GRegex *reject;
g_autoptr (GRegex) reject = g_regex_new (REJECT_RE, 0, 0, &error);
gboolean matches;
reject = g_regex_new (REJECT_RE, 0, 0, &error);
if (!reject)
{
g_warning ("Could not compile regex for"
@ -199,10 +198,9 @@ static gchar *
extract_dial_string (const gchar *number)
{
g_autoptr (GError) error = NULL;
g_autoptr (GRegex) replace_visual;
g_autoptr (GRegex) replace_visual = g_regex_new (VISUAL_RE, 0, 0, &error);
gchar *dial_string;
replace_visual = g_regex_new (VISUAL_RE, 0, 0, &error);
if (!replace_visual)
{
g_warning ("Could not compile regex for"