mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-09 02:28:19 +02:00
progress: plug small memory leak
We weren't freeing the message structures.
This commit is contained in:
parent
18541c1d58
commit
68109ce9c5
1 changed files with 2 additions and 0 deletions
|
|
@ -100,6 +100,7 @@ ply_progress_free (ply_progress_t* progress)
|
|||
next_node = ply_list_get_next_node (progress->current_message_list, node);
|
||||
|
||||
free (message->string);
|
||||
free (message);
|
||||
node = next_node;
|
||||
}
|
||||
ply_list_free (progress->current_message_list);
|
||||
|
|
@ -113,6 +114,7 @@ ply_progress_free (ply_progress_t* progress)
|
|||
next_node = ply_list_get_next_node (progress->previous_message_list, node);
|
||||
|
||||
free (message->string);
|
||||
free (message);
|
||||
node = next_node;
|
||||
}
|
||||
ply_list_free (progress->previous_message_list);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue