fix some memory leaks

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3012 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2014-04-19 12:56:30 +00:00
parent f37250f17d
commit b4999bfafb
4 changed files with 17 additions and 4 deletions

View File

@@ -168,7 +168,7 @@ void RecentFiles::buildMenu() {
// remplit le menu
foreach (QString filepath, list_) {
// creee une nouvelle action pour le fichier
QAction *action = new QAction(filepath, 0);
QAction *action = new QAction(filepath, this);
if (!files_icon_.isNull()) {
action -> setIcon(files_icon_);
}