[mutter/gbsneto/wayland-stutter: 4/7] monitor-manager-kms: Use g_autoptr for error
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/gbsneto/wayland-stutter: 4/7] monitor-manager-kms: Use g_autoptr for error
- Date: Wed, 21 Mar 2018 18:50:54 +0000 (UTC)
commit de294f34bbf92576d19e6837fb8192eee089163d
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Sat Mar 17 21:42:37 2018 -0300
monitor-manager-kms: Use g_autoptr for error
A minor code cleanup.
src/backends/native/meta-monitor-manager-kms.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/src/backends/native/meta-monitor-manager-kms.c b/src/backends/native/meta-monitor-manager-kms.c
index 2a14308c4..1a8be0855 100644
--- a/src/backends/native/meta-monitor-manager-kms.c
+++ b/src/backends/native/meta-monitor-manager-kms.c
@@ -674,7 +674,7 @@ meta_monitor_manager_kms_initable_init (GInitable *initable,
gpu_paths = get_gpu_paths (manager_kms, GPU_TYPE_SECONDARY, primary_gpu_path);
for (l = gpu_paths; l; l = l->next)
{
- GError *secondary_error = NULL;
+ g_autoptr (GError) secondary_error = NULL;
char *gpu_path = l->data;
MetaGpuKms *gpu_kms;
@@ -683,7 +683,6 @@ meta_monitor_manager_kms_initable_init (GInitable *initable,
{
g_warning ("Failed to open secondary gpu '%s': %s",
gpu_path, secondary_error->message);
- g_error_free (secondary_error);
}
meta_monitor_manager_add_gpu (META_MONITOR_MANAGER (manager_kms),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]