utils: fix memory leak in sorted GSList insert
commitde49d8ad7387950077730a15732c118155f26742
authorStefan Becker <chemobejk@gmail.com>
Sun, 12 May 2013 15:09:05 +0000 (12 18:09 +0300)
committerStefan Becker <chemobejk@gmail.com>
Sun, 12 May 2013 15:09:05 +0000 (12 18:09 +0300)
treeb9372fc742dac9d0bb60f1278fa9c014af6b23e1
parentc6ad1dbdc7d996f48df789263fbe54b1654f7ad1
utils: fix memory leak in sorted GSList insert

Some of the callers allocate memory for the data to be inserted in the
list. The old code didn't free this if the value was already on the
list.

Update the API to add a GDestroyNotify parameter which will be called
for this case.
src/core/sipe-buddy.c
src/core/sipe-chat.c
src/core/sipe-conf.c
src/core/sipe-group.c
src/core/sipe-notify.c
src/core/sipe-ocs2007.c
src/core/sipe-utils.c
src/core/sipe-utils.h