Cleanup g_strfreev() to auto_gcharv

Include some additional minor cleanups
This commit is contained in:
John Hernandez
2023-07-13 16:31:31 +02:00
parent 029f1caa52
commit 865a056315
16 changed files with 165 additions and 234 deletions

View File

@@ -177,14 +177,13 @@ p_gpg_on_connect(const char* const barejid)
// load each keyid
gsize len = 0;
gchar** jids = g_key_file_get_groups(pubkeyfile, &len);
auto_gcharv gchar** jids = g_key_file_get_groups(pubkeyfile, &len);
gpgme_ctx_t ctx;
gpgme_error_t error = gpgme_new(&ctx);
if (error) {
log_error("GPG: Failed to create gpgme context. %s %s", gpgme_strsource(error), gpgme_strerror(error));
g_strfreev(jids);
return;
}
@@ -212,7 +211,6 @@ p_gpg_on_connect(const char* const barejid)
}
gpgme_release(ctx);
g_strfreev(jids);
_save_pubkeys();
}