mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2024-11-17 07:46:03 +00:00
call-record-row: Use g_autoptr for the GError
This commit is contained in:
parent
5610a50080
commit
1f8435f4dd
1 changed files with 1 additions and 2 deletions
|
@ -382,8 +382,8 @@ static void
|
|||
setup_contact (CallsCallRecordRow *self)
|
||||
{
|
||||
g_autofree gchar *target = NULL;
|
||||
g_autoptr(GError) error = NULL;
|
||||
EPhoneNumber *phone_number;
|
||||
GError *error = NULL;
|
||||
|
||||
// Get the target number
|
||||
g_object_get (G_OBJECT (self->record),
|
||||
|
@ -398,7 +398,6 @@ setup_contact (CallsCallRecordRow *self)
|
|||
{
|
||||
g_warning ("Error parsing phone number `%s': %s",
|
||||
target, error->message);
|
||||
g_error_free (error);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue