Skip to content

Leak in thunar-window.c

Line 5916: https://gitlab.xfce.org/xfce/thunar/-/blob/master/thunar/thunar-window.c#L5916

Maybe I'm mistaken, but shouldn't name be freed after using g_object_get()?

Perhaps simplifying the for loop like this will work.

{
     gchar *name;

     g_object_get (G_OBJECT (lp_item->data), "name", &name, NULL);
     if (strncmp ("uca-action", name, 10) == 0 && g_strcmp0 (action_name, name) == 0)
          thunarx_menu_item_activate (lp_item->data);

     g_free (name);
}