diff options
author | Albert Astals Cid <albert.astals@canonical.com> | 2017-03-16 16:27:47 +0100 |
---|---|---|
committer | Albert Astals Cid <albert.astals@canonical.com> | 2017-03-16 16:27:47 +0100 |
commit | 4216eb744d580195628611f0aab698cd483a8675 (patch) | |
tree | fd4c974396446dc7efcfe9858974b27e6a845a63 /libqmenumodel | |
parent | 9058e742838cb7dccbd1c9d6a477100c6f52714f (diff) | |
download | qmenumodel-4216eb744d580195628611f0aab698cd483a8675.tar.gz qmenumodel-4216eb744d580195628611f0aab698cd483a8675.tar.bz2 qmenumodel-4216eb744d580195628611f0aab698cd483a8675.zip |
Fix c&p, this ref should be unref
Diffstat (limited to 'libqmenumodel')
-rw-r--r-- | libqmenumodel/src/unitymenumodelevents.cpp | 2 |
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); } } |