Fix segfault when refreshing the status view
commit370f8051c4a02d1168b24aa330b2fb371c765ee4
authorJonas Fonseca <jonas.fonseca@gmail.com>
Tue, 10 Feb 2015 04:14:52 +0000 (9 23:14 -0500)
committerJonas Fonseca <jonas.fonseca@gmail.com>
Tue, 10 Feb 2015 04:17:19 +0000 (9 23:17 -0500)
tree454829ff504985a0418d356d3e1e9ee84028c8d8
parente843f0e53b56ac49b471e0935bff385de40fcc99
Fix segfault when refreshing the status view

This reverts the buggy workaround from the previous commit and fixes the
segfault by always removing the ref from the ID map list before
inserting it, thus avoiding corrupting the ref list.

Fixes #370
src/refdb.c