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

Merge pull request #430 from acoffman/master

free latest_release regardless of its validity
This commit is contained in:
James Booth 2014-09-30 00:25:00 +01:00
commit 780a3f1cc7

View File

@ -206,7 +206,6 @@ _cons_check_version(gboolean not_available_msg)
if (release_is_new(latest_release)) {
win_save_vprint(console, '-', NULL, 0, 0, "", "A new version of Profanity is available: %s", latest_release);
win_save_println(console, "Check <http://www.profanity.im> for details.");
free(latest_release);
win_save_println(console, "");
} else {
if (not_available_msg) {
@ -217,6 +216,7 @@ _cons_check_version(gboolean not_available_msg)
cons_alert();
}
free(latest_release);
}
}