diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-05-04 09:19:16 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-05-04 09:19:16 +0200 |
commit | 7ea1b6add7ebef4d475801e15e89992e734617c1 (patch) | |
tree | a083886be1493a1616ef380e8ccad40e09e49e1f /src/bookmarks/bookmarkspanel.cpp | |
parent | Fix conflicts (diff) | |
download | rekonq-7ea1b6add7ebef4d475801e15e89992e734617c1.tar.xz |
Memory leaks fixes
first bunch
Diffstat (limited to 'src/bookmarks/bookmarkspanel.cpp')
-rw-r--r-- | src/bookmarks/bookmarkspanel.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/bookmarks/bookmarkspanel.cpp b/src/bookmarks/bookmarkspanel.cpp index 0f4e64b8..502af574 100644 --- a/src/bookmarks/bookmarkspanel.cpp +++ b/src/bookmarks/bookmarkspanel.cpp @@ -188,8 +188,13 @@ void BookmarksPanel::contextMenu(const QPoint &pos) KBookmark selected = bookmarkForIndex(index); - BookmarkContextMenu *menu = new BookmarkContextMenu(selected, Application::bookmarkProvider()->bookmarkManager(), Application::bookmarkProvider()->bookmarkOwner(), this); - menu->popup(m_treeView->mapToGlobal(pos)); + BookmarkContextMenu menu( selected, + Application::bookmarkProvider()->bookmarkManager(), + Application::bookmarkProvider()->bookmarkOwner(), + this + ); + + menu.exec(m_treeView->mapToGlobal(pos)); } |