mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-13 07:47:45 +00:00
Fixed a crash.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1992 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
30d5648279
commit
02c5931431
1 changed files with 5 additions and 2 deletions
|
@ -579,8 +579,11 @@ void PIN_SaveMessages(void)
|
||||||
void PIN_DeleteOldestMessage(void)
|
void PIN_DeleteOldestMessage(void)
|
||||||
{
|
{
|
||||||
pinnedmessages_t *old = pinned;
|
pinnedmessages_t *old = pinned;
|
||||||
pinned = pinned->next;
|
if (old)
|
||||||
Z_Free(old);
|
{
|
||||||
|
pinned = pinned->next;
|
||||||
|
Z_Free(old);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
void PIN_MakeMessage(char *from, char *msg)
|
void PIN_MakeMessage(char *from, char *msg)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue