[Xfce4-commits] [apps/mousepad] 04/04: Clear error if no instance is running
noreply at xfce.org
noreply at xfce.org
Wed Jul 24 02:39:59 CEST 2019
This is an automated email from the git hooks/post-receive script.
a n d r e p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository apps/mousepad.
commit 93987fc3870573ef403f73b2eef1b27c28d48f4e
Author: Andre Miranda <andreldm at xfce.org>
Date: Mon Jun 17 22:52:25 2019 -0300
Clear error if no instance is running
---
mousepad/main.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/mousepad/main.c b/mousepad/main.c
index 2b5b1cc..97ff07f 100644
--- a/mousepad/main.c
+++ b/mousepad/main.c
@@ -153,6 +153,13 @@ main (gint argc, gchar **argv)
return EXIT_SUCCESS;
}
+
+ /* No instance may own the service name, so we need to clean the error */
+ if (G_UNLIKELY (error))
+ {
+ g_error_free (error);
+ error = NULL;
+ }
}
#endif /* !HAVE_DBUS */
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list