[gnome-shell] helpers: Destroy GjsContext before exit
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] helpers: Destroy GjsContext before exit
- Date: Wed, 7 Dec 2016 19:35:11 +0000 (UTC)
commit 56b20ef779eb3054bc558c29ec2d7bcaf63468e5
Author: Philip Chimento <philip endlessm com>
Date: Tue Nov 29 16:24:44 2016 -0800
helpers: Destroy GjsContext before exit
This will be required in the upcoming version of GJS.
https://bugzilla.gnome.org/show_bug.cgi?id=775374
src/gnome-shell-extension-prefs.c | 3 +++
src/gnome-shell-portal-helper.c | 3 +++
2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/gnome-shell-extension-prefs.c b/src/gnome-shell-extension-prefs.c
index 967e615..5876121 100644
--- a/src/gnome-shell-extension-prefs.c
+++ b/src/gnome-shell-extension-prefs.c
@@ -30,6 +30,7 @@ main (int argc, char *argv[])
{
g_message("Failed to defined ARGV: %s", error->message);
g_error_free (error);
+ g_object_unref (context);
return 1;
}
@@ -43,9 +44,11 @@ main (int argc, char *argv[])
{
g_message ("Execution of main.js threw exception: %s", error->message);
g_error_free (error);
+ g_object_unref (context);
return status;
}
+ g_object_unref (context);
return 0;
}
diff --git a/src/gnome-shell-portal-helper.c b/src/gnome-shell-portal-helper.c
index 4087f87..94eeecb 100644
--- a/src/gnome-shell-portal-helper.c
+++ b/src/gnome-shell-portal-helper.c
@@ -30,6 +30,7 @@ main (int argc, char *argv[])
{
g_message("Failed to define ARGV: %s", error->message);
g_error_free (error);
+ g_object_unref (context);
return 1;
}
@@ -44,9 +45,11 @@ main (int argc, char *argv[])
{
g_message ("Execution of main.js 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]