canonical/mir

Add `wl_array` wrapper

Open

#4,159 opened on 2025年8月28日

GitHub で見る
 (1 comment) (0 reactions) (0 assignees)C++ (137 forks)auto 404
Good first issue

Repository metrics

Stars
 (775 stars)
PR merge metrics
 (PR metrics pending)

説明

Mir doesn't have a wrapper for wl_array, which occasionally leads to memory leaks (see #4158) (and maybe other more nefarious bugs?). Creating a C++ wrapper for internal use in Mir would protect us against such issues in the future.

This issue should be pretty straightforward, add the wrapper which would init on creation and release on destruction, grep for occurrences of wl_array, and replace that with the new wrapper. Should be a drop in replacement.

コントリビューターガイド