Fix leaks of plugin actions

Review Request #3023 — Created March 12, 2024 and submitted — Latest diff uploaded

Information

pidgin/pidgin
default

Reviewers

All action groups and action menus leak because the plugin info is created, directly returned, and nothing owns them any more.
Instead, steal the reference in the plugin info setters, so that they are owned by it.

Then clean up a bunch of additional refs that aren't needed.

Ran in valgrind, and no longer saw leaks from notification-sound.c.
Also enabled and disabled that plugin and saw no errors.

Diff Revision 2 (Latest)

orig
1
2

Commits

First Last Summary ID Author
Fix leaks of plugin actions
4e47449ee1100d7a1707a0eb6727baca738b77fb Elliott Sales de Andrade
libpurple/purpleplugininfo.h
libpurple/purpleplugininfo.c
libpurple/plugins/notification-sound/notification-sound.c
pidgin/pidginpluginsmenu.c
Loading...