canonical/mir

Add `wl_array` wrapper

Open

#4159 aperta il 28 ago 2025

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)C++ (137 fork)auto 404
Good first issue

Metriche repository

Star
 (775 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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.

Guida contributor