Free prefs strings, check for NULLs when closing pgp module
This commit is contained in:
@@ -74,14 +74,20 @@ p_gpg_init(void)
|
||||
void
|
||||
p_gpg_close(void)
|
||||
{
|
||||
g_hash_table_destroy(fingerprints);
|
||||
fingerprints = NULL;
|
||||
if (fingerprints) {
|
||||
g_hash_table_destroy(fingerprints);
|
||||
fingerprints = NULL;
|
||||
}
|
||||
|
||||
g_key_file_free(fpskeyfile);
|
||||
fpskeyfile = NULL;
|
||||
if (fpskeyfile) {
|
||||
g_key_file_free(fpskeyfile);
|
||||
fpskeyfile = NULL;
|
||||
}
|
||||
|
||||
free(fpsloc);
|
||||
fpsloc = NULL;
|
||||
if (fpsloc) {
|
||||
free(fpsloc);
|
||||
fpsloc = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user