about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-06-15 17:43:16 +0100
committerJames Booth <boothj5@gmail.com>2014-06-15 17:43:16 +0100
commit45e3b25fabab9f7569191201160e8da9acb31482 (patch)
treee139e2a18c03c80c510e5bfab2d733690c57a008 /src
parentb9b5d6a5f849346497f8fc89fff977a5edd352e9 (diff)
downloadprofani-tty-45e3b25fabab9f7569191201160e8da9acb31482.tar.gz
Fixed memleak in wins_xmlconsole_exists
Diffstat (limited to 'src')
-rw-r--r--src/ui/windows.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ui/windows.c b/src/ui/windows.c
index 44639040..2988ba6e 100644
--- a/src/ui/windows.c
+++ b/src/ui/windows.c
@@ -305,11 +305,14 @@ wins_xmlconsole_exists(void)
 
     while (curr != NULL) {
         ProfWin *window = curr->data;
-        if (window->type == WIN_XML)
+        if (window->type == WIN_XML) {
+            g_list_free(values);
             return TRUE;
+        }
         curr = g_list_next(curr);
     }
 
+    g_list_free(values);
     return FALSE;
 }