mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-28 05:36:21 +00:00
Cleanup g_strfreev() to auto_gcharv
Include some additional minor cleanups
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user