mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-20 08:58:00 +02:00
Fixed memory leak
This commit is contained in:
parent
fefffd4f64
commit
9119443918
1 changed files with 9 additions and 1 deletions
|
@ -104,7 +104,15 @@ namespace IDE
|
||||||
public class BookmarkManager
|
public class BookmarkManager
|
||||||
{
|
{
|
||||||
public BookmarkFolder mRootFolder = new .();
|
public BookmarkFolder mRootFolder = new .();
|
||||||
public List<BookmarkFolder> mBookmarkFolders = new .() {mRootFolder} ~ DeleteContainerAndItems!(_);
|
public List<BookmarkFolder> mBookmarkFolders = new .() {mRootFolder} ~
|
||||||
|
{
|
||||||
|
while (!_.IsEmpty)
|
||||||
|
{
|
||||||
|
DeleteFolder(_.Back);
|
||||||
|
}
|
||||||
|
|
||||||
|
delete _;
|
||||||
|
};
|
||||||
|
|
||||||
/// Occurs when a bookmark/folder is added, removed or moved.
|
/// Occurs when a bookmark/folder is added, removed or moved.
|
||||||
public Event<Action> BookmarksChanged ~ _.Dispose();
|
public Event<Action> BookmarksChanged ~ _.Dispose();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue