about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-06-15 21:36:47 +0100
committerJames Booth <boothj5@gmail.com>2014-06-15 21:36:47 +0100
commitd89ac912eb379f571ec37e59aea7e1e1d4b39ed5 (patch)
tree3de01763d6185016955f28fc45e5c931546449c0
parent2c4e2d5dbd48dd06a2aa0ebd6fae59c0c2a2c337 (diff)
downloadprofani-tty-d89ac912eb379f571ec37e59aea7e1e1d4b39ed5.tar.gz
Free list in wins_get_num
-rw-r--r--src/ui/windows.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ui/windows.c b/src/ui/windows.c
index c2edb9e1..c3c44795 100644
--- a/src/ui/windows.c
+++ b/src/ui/windows.c
@@ -154,6 +154,7 @@ wins_get_by_recipient(const char * const recipient)
     while (curr != NULL) {
         ProfWin *window = curr->data;
         if (g_strcmp0(window->from, recipient) == 0) {
+            g_list_free(values);
             return window;
         }
         curr = g_list_next(curr);
@@ -173,11 +174,13 @@ wins_get_num(ProfWin *window)
         gconstpointer num_p = curr->data;
         ProfWin *curr_win = g_hash_table_lookup(windows, num_p);
         if (g_strcmp0(curr_win->from, window->from) == 0) {
+            g_list_free(keys);
             return GPOINTER_TO_INT(num_p);
         }
         curr = g_list_next(curr);
     }
 
+    g_list_free(keys);
     return -1;
 }
 
vc@akkartik.com> 2018-12-30 00:02:42 -0800 4891' href='/akkartik/mu/commit/html/immutable-error.mu.html?h=main&id=08a0eed699b8ea07d37163aba610c8e04feee003'>08a0eed6 ^
e4ac3c9e ^
805d58c6 ^
ac07e589 ^



f8a4a457 ^





e5c11a51 ^






















f8a4a457 ^


e5c11a51 ^
e4ac3c9e ^
f8a4a457 ^
204dae92 ^

b301e0c0 ^
204dae92 ^

b301e0c0 ^
204dae92 ^

b301e0c0 ^
204dae92 ^
4a48bedc ^
204dae92 ^

f8a4a457 ^



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73