1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Merge pull request #1403 from wstrm/fix-error-no-free

Free errors after they have been printed
This commit is contained in:
Michael Vetter 2020-07-10 15:24:05 +02:00 committed by GitHub
commit b6361ddeab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -263,6 +263,7 @@ omemo_on_connect(ProfAccount* account)
}
} else if (error->code != G_FILE_ERROR_NOENT) {
log_warning("OMEMO: error loading identity from: %s, %s", omemo_ctx.identity_filename->str, error->message);
g_error_free(error);
return;
}
@ -271,6 +272,7 @@ omemo_on_connect(ProfAccount* account)
_load_trust();
} else if (error->code != G_FILE_ERROR_NOENT) {
log_warning("OMEMO: error loading trust from: %s, %s", omemo_ctx.trust_filename->str, error->message);
g_error_free(error);
}
error = NULL;
@ -278,6 +280,7 @@ omemo_on_connect(ProfAccount* account)
_load_sessions();
} else if (error->code != G_FILE_ERROR_NOENT) {
log_warning("OMEMO: error loading sessions from: %s, %s", omemo_ctx.sessions_filename->str, error->message);
g_error_free(error);
}
error = NULL;
@ -285,6 +288,7 @@ omemo_on_connect(ProfAccount* account)
_load_known_devices();
} else if (error->code != G_FILE_ERROR_NOENT) {
log_warning("OMEMO: error loading known devices from: %s, %s", omemo_ctx.known_devices_filename->str, error->message);
g_error_free(error);
}
}