Skip to content
Snippets Groups Projects
Commit 6125d8f1 authored by correctmost's avatar correctmost
Browse files

button: Fix string leak

parent 1e7eafc2
No related branches found
No related tags found
1 merge request!77button: Fix string leak
Pipeline #31575 canceled
......@@ -523,6 +523,7 @@ power_manager_button_update_device_icon_and_details (PowerManagerButton *button,
XFPM_DEBUG ("this is the display device, updating");
/* update the icon */
g_free (button->priv->panel_icon_name);
g_free (button->priv->panel_fallback_icon_name);
#ifdef XFCE_PLUGIN
button->priv->panel_icon_name = g_strdup (icon_name);
button->priv->panel_fallback_icon_name = g_strdup_printf ("%s-%s", menu_icon_name, "symbolic");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment