mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-10 13:29:58 -05:00
memtrap: properly add items to linked list
This commit is contained in:
parent
56e1290ef6
commit
996051ebc1
1 changed files with 4 additions and 1 deletions
|
|
@ -107,7 +107,10 @@ static void memtrap_link(pa_memtrap *m, unsigned j) {
|
||||||
pa_assert(m);
|
pa_assert(m);
|
||||||
|
|
||||||
m->prev[j] = NULL;
|
m->prev[j] = NULL;
|
||||||
m->next[j] = memtraps[j];
|
|
||||||
|
if ((m->next[j] = memtraps[j]))
|
||||||
|
m->next[j]->prev[j] = m;
|
||||||
|
|
||||||
memtraps[j] = m;
|
memtraps[j] = m;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue