aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}
}