[Xfce4-commits] [apps/xfce4-notifyd] 01/03: Fix crash when there are no known apps
noreply at xfce.org
noreply at xfce.org
Fri Feb 16 23:16:04 CET 2018
This is an automated email from the git hooks/post-receive script.
o c h o s i 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/xfce4-notifyd.
commit 5966f7aa5e0a82fd3e53645155d7e300b2f3e882
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date: Wed Feb 14 00:29:56 2018 +0100
Fix crash when there are no known apps
---
xfce4-notifyd/xfce-notify-daemon.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/xfce4-notifyd/xfce-notify-daemon.c b/xfce4-notifyd/xfce-notify-daemon.c
index 37608e1..db65f87 100644
--- a/xfce4-notifyd/xfce-notify-daemon.c
+++ b/xfce4-notifyd/xfce-notify-daemon.c
@@ -1061,11 +1061,11 @@ notify_update_known_applications (XfconfChannel *channel, gchar *new_app_name)
/* No known applications, initialize the channel and property */
if (known_applications == NULL || known_applications->len < 1) {
GPtrArray *array;
- array = g_ptr_array_sized_new (1);
+ array = g_ptr_array_new ();
g_ptr_array_add (array, val);
if (!xfconf_channel_set_arrayv (channel, KNOWN_APPLICATIONS_PROP, array))
g_warning ("Could not initialize the application log: %s", new_app_name);
- xfconf_array_free (array);
+ g_ptr_array_unref (array);
}
/* Add the new application to the list unless it's already known */
else {
@@ -1113,7 +1113,6 @@ notify_application_is_muted (XfconfChannel *channel, gchar *new_app_name)
}
}
}
-
xfconf_array_free (muted_applications);
return FALSE;
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list