monitor-sensor: Fix memory leak

Use g_autoptr in place of the missing g_error_free().
This commit is contained in:
Guido Günther
2020-03-03 09:38:39 +01:00
parent 16983e0d2a
commit cec37ef8f4

View File

@@ -129,7 +129,7 @@ appeared_cb (GDBusConnection *connection,
const gchar *name_owner,
gpointer user_data)
{
GError *error = NULL;
g_autoptr(GError) error = NULL;
GVariant *ret = NULL;
g_print ("+++ iio-sensor-proxy appeared\n");