elementary / dock

A quick app launcher and window switcher for Pantheon and elementary OS
https://elementary.io
GNU General Public License v3.0
89 stars 24 forks source link

Fix memory leak with apps #250

Closed leolost2605 closed 3 months ago

leolost2605 commented 3 months ago

Fixes a memory leak where apps weren't freed when they weren't needed anymore. We switch from glib.hashtable and glib.list s here to gee since working with the glib variants from vala code is hard when you want to not leak memory since it's designed with c in mind i guess (e.g. take will not unref the key and value). So why not use gee which was designed for vala.

This will only actually free apps with #249 since launchers hold a reference on apps.