1
0
Fork 0
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:
Guido Günther 2020-07-20 15:50:28 +02:00 committed by Guido Gunther
parent 5610a50080
commit 1f8435f4dd

View file

@ -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;
}