mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +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,7 +308,8 @@ free_link (void *data)
|
||||
static inline void *
|
||||
free_erase_list (GQueue * lp)
|
||||
{
|
||||
g_queue_free_full (lp, free_link);
|
||||
if (lp != NULL)
|
||||
g_queue_free_full (lp, free_link);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user