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:
commit
780a3f1cc7
@ -206,7 +206,6 @@ _cons_check_version(gboolean not_available_msg)
|
|||||||
if (release_is_new(latest_release)) {
|
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_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.");
|
win_save_println(console, "Check <http://www.profanity.im> for details.");
|
||||||
free(latest_release);
|
|
||||||
win_save_println(console, "");
|
win_save_println(console, "");
|
||||||
} else {
|
} else {
|
||||||
if (not_available_msg) {
|
if (not_available_msg) {
|
||||||
@ -217,6 +216,7 @@ _cons_check_version(gboolean not_available_msg)
|
|||||||
|
|
||||||
cons_alert();
|
cons_alert();
|
||||||
}
|
}
|
||||||
|
free(latest_release);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user