diff options
author | Antenore Gatta <antenore@simbiosi.org> | 2020-05-21 01:42:33 +0300 |
---|---|---|
committer | Antenore Gatta <antenore@simbiosi.org> | 2020-05-21 01:42:33 +0300 |
commit | d007bf63569c402b8f795e9484fe2a47ef234a04 (patch) | |
tree | 56611359a519c661c43ef1e390b0fdb9e249272e /plugins/secret | |
parent | 315787f77e0f0b9cc510ed173e2fb1f0d58f8677 (diff) |
Refactoring remmina_debug to avoid memory leaks and overhead, should fix #2202
Signed-off-by: Antenore Gatta <antenore@simbiosi.org>
Diffstat (limited to 'plugins/secret')
-rw-r--r-- | plugins/secret/src/glibsecret_plugin.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/secret/src/glibsecret_plugin.c b/plugins/secret/src/glibsecret_plugin.c index ffde68c60..3feda4951 100644 --- a/plugins/secret/src/glibsecret_plugin.c +++ b/plugins/secret/src/glibsecret_plugin.c @@ -84,7 +84,7 @@ static void remmina_plugin_glibsecret_unlock_secret_service() if (secretservice && defaultcollection) { if (secret_collection_get_locked(defaultcollection)) { lbl = secret_collection_get_label(defaultcollection); - remmina_plugin_service->debug("Requesting unlock of the default '%s' collection", lbl); + remmina_plugin_service->_debug("Requesting unlock of the default '%s' collection", lbl); objects = g_list_append(NULL, defaultcollection); secret_service_unlock_sync(secretservice, objects, NULL, &ul, &error); g_list_free(objects); @@ -108,9 +108,9 @@ void remmina_plugin_glibsecret_store_password(RemminaFile *remminafile, const gc NULL, &r, "filename", path, "key", key, NULL); g_free(s); if (r == NULL) { - remmina_plugin_service->debug("Password \"%s\" saved for file %s\n", key, path); + remmina_plugin_service->_debug("Password \"%s\" saved for file %s\n", key, path); }else { - remmina_plugin_service->debug("Password \"%s\" cannot be saved for file %s\n", key, path); + remmina_plugin_service->_debug("Password \"%s\" cannot be saved for file %s\n", key, path); g_error_free(r); } } @@ -131,7 +131,7 @@ remmina_plugin_glibsecret_get_password(RemminaFile *remminafile, const gchar *ke secret_password_free(password); return p; }else { - remmina_plugin_service->debug("Password cannot be found for file %s\n", path); + remmina_plugin_service->_debug("Password cannot be found for file %s\n", path); return NULL; } } @@ -145,9 +145,9 @@ void remmina_plugin_glibsecret_delete_password(RemminaFile *remminafile, const g path = remmina_plugin_service->file_get_path(remminafile); secret_password_clear_sync(&remmina_file_secret_schema, NULL, &r, "filename", path, "key", key, NULL); if (r == NULL) - remmina_plugin_service->debug("password \"%s\" deleted for file %s", key, path); + remmina_plugin_service->_debug("password \"%s\" deleted for file %s", key, path); else - remmina_plugin_service->debug("password \"%s\" cannot be deleted for file %s", key, path); + remmina_plugin_service->_debug("password \"%s\" cannot be deleted for file %s", key, path); } gboolean remmina_plugin_glibsecret_init() |