mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-01 00:54:24 +03:00
(free_erase_list): test queue before free.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
7871db5258
commit
8b79bfe32d
@ -308,6 +308,7 @@ free_link (void *data)
|
||||
static inline void *
|
||||
free_erase_list (GQueue * lp)
|
||||
{
|
||||
if (lp != NULL)
|
||||
g_queue_free_full (lp, free_link);
|
||||
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user