ocarina: Delete dynamically allocated playlist widgets
Plug the memory leak. Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
This commit is contained in:
parent
097b157c10
commit
68aa523ba8
|
@ -236,6 +236,7 @@ static void delete_playlist(libsaria::Playlist *playlist)
|
|||
gtk_notebook_set_current_page(tabs, cur_page + 1);
|
||||
|
||||
dynamic_widgets.remove(widgets);
|
||||
delete widgets;
|
||||
gtk_notebook_remove_page(tabs, page_num);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue