qulogic/libgnt

Fix possible leaks.

2019-10-02, Elliott Sales de Andrade
ba0a1cf21c46
Fix possible leaks.
  • +2 -1
    gntwm.c
  • --- a/gntwm.c Wed Oct 02 02:04:21 2019 -0400
    +++ b/gntwm.c Wed Oct 02 02:04:49 2019 -0400
    @@ -263,11 +263,12 @@
    GntWidget *label;
    GList *iter;
    static GntWidget *message = NULL;
    - GString *text = g_string_new("act: ");
    + GString *text;
    if (message)
    gnt_widget_destroy(message);
    if (!act)
    return;
    + text = g_string_new("act: ");
    for (iter = act; iter; iter = iter->next) {
    GntWS *ws = iter->data;
    g_string_append_printf(text, "%s, ", gnt_ws_get_name(ws));