From 2a4ab903824876884aae11588d7a32ea9e60c165 Mon Sep 17 00:00:00 2001 From: Florian Zwoch Date: Tue, 17 Dec 2019 16:15:36 +0100 Subject: [PATCH] error stuff --- gnome-mutter-screencast.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gnome-mutter-screencast.c b/gnome-mutter-screencast.c index 9b83784..945562b 100644 --- a/gnome-mutter-screencast.c +++ b/gnome-mutter-screencast.c @@ -360,7 +360,7 @@ static void stop(data_t *data) blog(LOG_ERROR, "Cannot connect to DBus: %s", err->message); g_error_free(err); - return; + goto fail; } g_dbus_connection_call_sync(dbus, "org.gnome.Mutter.ScreenCast", @@ -373,9 +373,10 @@ static void stop(data_t *data) blog(LOG_ERROR, "Cannot call Stop() on DBus: %s", err->message); g_error_free(err); - return; + goto fail; } +fail: g_free(data->session_path); data->session_path = NULL;