libgnt/libgnt
Clone
Summary
Browse
Changes
Graph
Fix possible leaks.
2019-10-02, Elliott Sales de Andrade
ba0a1cf21c46
Parents
9181386790d8
Children
68da4b7ffaba
48801da06f8c
Fix possible leaks.
1 files changed, 2 insertions(+), 1 deletions(-)
+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));