object-interest: set pw_props variable if not set and global props exist

Otherwise, object manager lookups and iterations with type "pw" may
not work properly.
This commit is contained in:
Carlos Rafael Giani 2025-09-10 12:43:33 +02:00
parent ebd9d2a7d5
commit a461d9e738

View file

@ -770,6 +770,8 @@ wp_object_interest_matches_full (WpObjectInterest * self,
if (!pw_global_props && WP_IS_SESSION_ITEM (object)) { if (!pw_global_props && WP_IS_SESSION_ITEM (object)) {
WpSessionItem *si = (WpSessionItem *) object; WpSessionItem *si = (WpSessionItem *) object;
pw_global_props = props = wp_session_item_get_properties (si); pw_global_props = props = wp_session_item_get_properties (si);
if (!pw_props)
pw_props = props;
} }
} }