There's only one instance of this pattern - make the function specific to that case rather than generic. The current code is leaking the Label2Data struct and the GSettings signal connection. The leak of the signal connection was causing a crash in case the callback was called after the label was destroyed. Instead of just directly fixing these problems, let's eliminate the intermediate struct and just support the specific case we're interested in directly. |
||
---|---|---|
.. | ||
cc-privacy-panel.c | ||
cc-privacy-panel.h | ||
cc-privacy-panel.ui | ||
gnome-privacy-panel.desktop.in.in | ||
meson.build | ||
privacy.gresource.xml |