[Xfce4-commits] [apps/xfdashboard] 01/02: Fix compilation - undeclared self
noreply at xfce.org
noreply at xfce.org
Sun Mar 15 16:49:42 CET 2020
This is an automated email from the git hooks/post-receive script.
n o m a d 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/xfdashboard.
commit 5bdb0022a7420322e586c52cefe4e2060860cfba
Author: DanielChabrowski <danchabrowski at gmail.com>
Date: Sat Mar 14 19:30:45 2020 +0100
Fix compilation - undeclared self
---
libxfdashboard/application-database.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/libxfdashboard/application-database.c b/libxfdashboard/application-database.c
index fc7d6e7..379d413 100644
--- a/libxfdashboard/application-database.c
+++ b/libxfdashboard/application-database.c
@@ -1610,12 +1610,16 @@ gchar* xfdashboard_application_database_get_file_from_desktop_id(const gchar *in
g_return_val_if_fail(inDesktopID && *inDesktopID, NULL);
+ /* Get singleton of application database */
+ appDB=xfdashboard_application_database_get_default();
+
/* Requested desktop ID must have ".desktop" suffix */
if(!g_str_has_suffix(inDesktopID, ".desktop"))
{
- XFDASHBOARD_DEBUG(self, APPLICATIONS,
+ XFDASHBOARD_DEBUG(appDB, APPLICATIONS,
"Skipping non-desktop file '%s'",
inDesktopID);
+ g_object_unref(appDB);
return(NULL);
}
@@ -1645,9 +1649,6 @@ gchar* xfdashboard_application_database_get_file_from_desktop_id(const gchar *in
* 5.) If this step is reached, no desktop file was found.
*/
- /* Get singleton of application database */
- appDB=xfdashboard_application_database_get_default();
-
/* Get search paths */
searchPaths=xfdashboard_application_database_get_application_search_paths(appDB);
if(!searchPaths)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list