Skip to content
Snippets Groups Projects
Commit 564e8a0d authored by George Kiagiadakis's avatar George Kiagiadakis
Browse files

object-manager: fix iterator fold object access

parent 5dfe688c
No related branches found
No related tags found
No related merge requests found
......@@ -370,7 +370,7 @@ om_iterator_fold (WpIterator *it, WpIteratorFoldFunc func, GValue *ret,
while ((obj - base) < len) {
/* only pass matching objects to the fold func if we have an interest */
if (!it_data->interest ||
wp_object_interest_matches (it_data->interest, obj)) {
wp_object_interest_matches (it_data->interest, *obj)) {
g_auto (GValue) item = G_VALUE_INIT;
g_value_init_from_instance (&item, *obj);
if (!func (&item, ret, data))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment