aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Astals Cid <albert.astals@canonical.com>2017-03-16 16:27:47 +0100
committerAlbert Astals Cid <albert.astals@canonical.com>2017-03-16 16:27:47 +0100
commit4216eb744d580195628611f0aab698cd483a8675 (patch)
treefd4c974396446dc7efcfe9858974b27e6a845a63
parent9058e742838cb7dccbd1c9d6a477100c6f52714f (diff)
downloadqmenumodel-4216eb744d580195628611f0aab698cd483a8675.tar.gz
qmenumodel-4216eb744d580195628611f0aab698cd483a8675.tar.bz2
qmenumodel-4216eb744d580195628611f0aab698cd483a8675.zip
Fix c&p, this ref should be unref
-rw-r--r--libqmenumodel/src/unitymenumodelevents.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libqmenumodel/src/unitymenumodelevents.cpp b/libqmenumodel/src/unitymenumodelevents.cpp
index 55cbaf0..68dacde 100644
--- a/libqmenumodel/src/unitymenumodelevents.cpp
+++ b/libqmenumodel/src/unitymenumodelevents.cpp
@@ -51,7 +51,7 @@ UnityMenuModelAddRowEvent::~UnityMenuModelAddRowEvent()
{
if (items) {
for (gint i = 0; i < items->len; ++i)
- g_object_ref(g_ptr_array_index(items, i));
+ g_object_unref(g_ptr_array_index(items, i));
g_ptr_array_unref(items);
}
}