From 075d4cf35b4fce6d623822a63ae0abfbfc78b965 Mon Sep 17 00:00:00 2001 From: Paul Fariello Date: Wed, 27 Mar 2019 15:52:48 +0100 Subject: Don't use glib 2.58 func --- src/omemo/omemo.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/omemo/omemo.c') diff --git a/src/omemo/omemo.c b/src/omemo/omemo.c index 1f48224e..1efe0296 100644 --- a/src/omemo/omemo.c +++ b/src/omemo/omemo.c @@ -1082,9 +1082,7 @@ static gboolean handle_own_device_list(const char *const jid, GList *device_list) { if (!g_list_find(device_list, GINT_TO_POINTER(omemo_ctx.device_id))) { - gpointer original_jid; - g_hash_table_steal_extended(omemo_ctx.device_list, jid, &original_jid, NULL); - free(original_jid); + device_list = g_list_copy(device_list); device_list = g_list_append(device_list, GINT_TO_POINTER(omemo_ctx.device_id)); g_hash_table_insert(omemo_ctx.device_list, strdup(jid), device_list); omemo_devicelist_publish(device_list); -- cgit 1.4.1-2-gfad0 right'>danisanti <danisanti@tilde.institute>
about summary refs log tree commit diff stats
path: root/themes/boothj5
blob: bbac89a69659e010db24e7922e876c55ad240fc1 (plain) (blame)
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152