mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2024-12-12 15:47:35 +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)
|
setup_contact (CallsCallRecordRow *self)
|
||||||
{
|
{
|
||||||
g_autofree gchar *target = NULL;
|
g_autofree gchar *target = NULL;
|
||||||
|
g_autoptr(GError) error = NULL;
|
||||||
EPhoneNumber *phone_number;
|
EPhoneNumber *phone_number;
|
||||||
GError *error = NULL;
|
|
||||||
|
|
||||||
// Get the target number
|
// Get the target number
|
||||||
g_object_get (G_OBJECT (self->record),
|
g_object_get (G_OBJECT (self->record),
|
||||||
|
@ -398,7 +398,6 @@ setup_contact (CallsCallRecordRow *self)
|
||||||
{
|
{
|
||||||
g_warning ("Error parsing phone number `%s': %s",
|
g_warning ("Error parsing phone number `%s': %s",
|
||||||
target, error->message);
|
target, error->message);
|
||||||
g_error_free (error);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue