Skip to content

button: Fix tooltip leak

Leak report

17 bytes in 1 blocks are definitely lost in loss record 1,886 of 8,819
   at 0x48447A8: malloc (vg_replace_malloc.c:446)
   by 0x5441661: g_malloc (gmem.c:100)
   by 0x545ADD3: g_strdup (gstrfuncs.c:323)
   by 0x70CF151: g_strdup_inline (gstrfuncs.h:321)
   by 0x70CF151: power_manager_button_set_tooltip (power-manager-button.c:277)
   by 0x70CF7A9: power_manager_button_update_device_icon_and_details (power-manager-button.c:535)
   by 0x70CFC92: power_manager_button_add_device (power-manager-button.c:603)
   by 0x70D038D: power_manager_button_add_all_devices (power-manager-button.c:715)
   by 0x70D038D: power_manager_button_show (power-manager-button.c:1216)
   by 0x70CDA05: power_manager_plugin_new (xfce-power-manager-plugin.c:244)
   by 0x70CDA05: power_manager_plugin_construct (xfce-power-manager-plugin.c:265)
[...snip...]

Testing

  • No issues were detected when testing the patch with Valgrind

Merge request reports

Loading