diff options
author | Pete Woods <pete.woods@canonical.com> | 2013-09-18 08:58:25 +0000 |
---|---|---|
committer | Tarmac <> | 2013-09-18 08:58:25 +0000 |
commit | b6f00b9045d8fec41c9e66db4c9c4a58298fc8ad (patch) | |
tree | 7e0b6c94d074935f9b62bc75ec5e3ee7f0c992e3 | |
parent | 81648d324bb49435572f6b211c0d62faa43f4a67 (diff) | |
parent | 9b9504fa3baaac8a1cc0a3422f9ccdf3c93f9ce8 (diff) | |
download | qmenumodel-b6f00b9045d8fec41c9e66db4c9c4a58298fc8ad.tar.gz qmenumodel-b6f00b9045d8fec41c9e66db4c9c4a58298fc8ad.tar.bz2 qmenumodel-b6f00b9045d8fec41c9e66db4c9c4a58298fc8ad.zip |
Fix memory leak in unitymenumodel
The items sequence is not being freed in the destructor.
Approved by PS Jenkins bot, Lars Uebernickel.
-rw-r--r-- | libqmenumodel/src/unitymenumodel.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libqmenumodel/src/unitymenumodel.cpp b/libqmenumodel/src/unitymenumodel.cpp index a0ab4ff..39336ec 100644 --- a/libqmenumodel/src/unitymenumodel.cpp +++ b/libqmenumodel/src/unitymenumodel.cpp @@ -136,6 +136,7 @@ UnityMenuModelPrivate::~UnityMenuModelPrivate() { this->clearItems(false); + g_sequence_free(this->items); g_clear_pointer (&this->menutracker, gtk_menu_tracker_free); g_clear_object (&this->muxer); g_clear_object (&this->connection); |