Fix media leaks

Review Request #3036 — Created March 19, 2024 and submitted

Information

pidgin/pidgin
default

Reviewers

The global media manager object was never cleaned up, so add a (private)
shutdown function to ensure that happens.

Also, purple_media_manager_register_element and
purple_media_manager_get_element_info are transfer full, while
purple_media_manager_set_active_element is transfer none, so reconcile that
inconsistency.

Ran with valgrind, and fewer leaks were reported.

Summary ID
Fix media leaks
The global media manager object was never cleaned up, so add a (private) shutdown function to ensure that happens. Also, `purple_media_manager_register_element` and `purple_media_manager_get_element_info` are transfer full, while `purple_media_manager_set_active_element` is transfer none, so reconcile that inconsistency.
81bddaa5bf60ce9391eb928fc5adc6311af68359
grim
  1. Great work! Thanks!!

  2. 
      
grim
Review request changed
Status:
Completed