pidgin/pidgin

Re-write remove_prefs to not use recursion.

2019-11-05, Elliott Sales de Andrade
d1ad503fe389
Re-write remove_prefs to not use recursion.

This also fixes the possible use-after-free that scan-build seems to
think is there.
<?xml version="1.0" encoding="UTF-8" ?>
<stream:stream xmlns="jabber:client" xmlns:stream="http://etherx.jabber.org/streams" >
<message to="yo@chloe" type="chat"><body>hola</body><html xmlns="html://www.w3.org/1999/xhtml"><body ichatballoncolor="#111111" ichattextcolor="#000000"><font face="Courier" ABSZ="3">hola</font></body></html><x xmlns="jabber:x:event"><composing /></x></message>
</stream:stream>