[retro-gtk/runner-cleanup: 2/2] ipc-runner-impl: Use g_autoptr()
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [retro-gtk/runner-cleanup: 2/2] ipc-runner-impl: Use g_autoptr()
- Date: Sat, 23 May 2020 12:02:56 +0000 (UTC)
commit e4116f880b450e2b7bf06a44b12a3eacf6d6ce45
Author: Adrien Plazas <kekun plazas laposte net>
Date: Sat May 23 13:18:32 2020 +0200
ipc-runner-impl: Use g_autoptr()
This makes the code more concise.
retro-runner/ipc-runner-impl.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/retro-runner/ipc-runner-impl.c b/retro-runner/ipc-runner-impl.c
index 6c19015..799fdee 100644
--- a/retro-runner/ipc-runner-impl.c
+++ b/retro-runner/ipc-runner-impl.c
@@ -47,7 +47,7 @@ ipc_runner_impl_handle_boot (IpcRunner *runner,
IpcRunnerImpl *self = IPC_RUNNER_IMPL (runner);
g_autoptr(GError) error = NULL;
g_autoptr(GUnixFDList) out_fd_list = NULL;
- GVariantIter *iter;
+ g_autoptr (GVariantIter) iter = NULL;
gchar *key, *value;
gint handle, fd;
@@ -56,8 +56,6 @@ ipc_runner_impl_handle_boot (IpcRunner *runner,
while (g_variant_iter_loop (iter, "(ss)", &key, &value))
retro_core_override_variable_default (self->core, key, value);
- g_variant_iter_free (iter);
-
retro_core_set_medias (self->core, medias);
g_variant_get (default_controller, "h", &handle);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]