Page MenuHome

Fix: XR action map memory leaks
AbandonedPublic

Authored by Peter Kim (muxed-reality) on Aug 10 2021, 11:23 AM.

Details

Reviewers
None
Summary

This fixes two memory leaks related to XR action maps.

  1. Freeing of action maps needs to be moved from wm_xr_exit() to

wm_xr_runtime_data_free() since the runtime may have already been
freed when calling wm_xr_exit().

  1. Action bindings for action map items were not being freed. This

was mistakenly left out of e844e9e8f3bb since the patch needed to be
updated after d3d4be1db3a0.

Diff Detail

Repository
rB Blender
Branch
xr-actionmaps-memleak-fix (branched from master)
Build Status
Buildable 16329
Build 16329: arc lint + arc unit