canonical / snapd-desktop-integration

User session helpers for snapd
GNU General Public License v3.0
15 stars 10 forks source link

Fix crash when showing several progress bars #87

Closed sergio-costas closed 2 months ago

sergio-costas commented 2 months ago

When calling foreach in the dictionary, g_object_ref() is called once on self, but in the callback it is assigned to a g_autoptr in each call. If there is only one entry in the dictionary, it works, but if there are several, the second time the callback is called, self will be freed again, and the program crashes.

sergio-costas commented 2 months ago

@robert-ancell Can you review and merge this when you have some spare time, please?