[polari] polari: Destroy GjsContext before exit
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari] polari: Destroy GjsContext before exit
- Date: Mon, 12 Dec 2016 11:29:54 +0000 (UTC)
commit 8557024377ba9fb025ac802f0a76a1d26509e317
Author: Florian Müllner <fmuellner gnome org>
Date: Mon Dec 12 00:19:30 2016 +0100
polari: Destroy GjsContext before exit
... as required by recent GJS.
src/polari.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/polari.c b/src/polari.c
index 5ed30e8..2bc6e82 100644
--- a/src/polari.c
+++ b/src/polari.c
@@ -28,6 +28,8 @@ main (int argc, char *argv[])
g_message ("Failed to define ARGV: %s", error->message);
g_error_free (error);
+ g_object_unref (context);
+
return 1;
}
@@ -36,8 +38,12 @@ main (int argc, char *argv[])
g_message ("Execution of start() threw exception: %s", error->message);
g_error_free (error);
+ g_object_unref (context);
+
return status;
}
+ g_object_unref (context);
+
return 0;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]