[Xfce4-commits] [apps/gigolo] 18/35: unref the GtkApplication instance at the right spot to avoid a crash
noreply at xfce.org
noreply at xfce.org
Mon Oct 31 18:18:52 CET 2016
This is an automated email from the git hooks/post-receive script.
landry pushed a commit to branch master
in repository apps/gigolo.
commit 119b8af6ae8ab8eb230724ea38ce0eb10742798d
Author: Landry Breuil <landry at xfce.org>
Date: Sun Jun 19 16:37:26 2016 +0200
unref the GtkApplication instance at the right spot to avoid a crash
---
src/main.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/main.c b/src/main.c
index 6bd1ef6..12eabea 100644
--- a/src/main.c
+++ b/src/main.c
@@ -162,6 +162,7 @@ gint main(gint argc, gchar** argv)
gis = gtk_application_new("org.xfce.gigolo", G_APPLICATION_FLAGS_NONE);
g_signal_connect (gis, "activate", G_CALLBACK (activate), NULL);
status = g_application_run (G_APPLICATION (gis), argc, argv);
+ g_object_unref(gis);
}
else
{
@@ -199,9 +200,6 @@ static int gigolo_create(GtkApplication *gis)
gtk_main();
g_object_unref(settings);
- if (gis != NULL)
- g_object_unref(gis);
-
gtk_accel_map_save(accel_filename);
g_free(accel_filename);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list