tvheadend/tvheadend — pull request #329 by perexg (2014-02-17 13:12:40+00:00)
Title: Graceful exit

It's necessary to do serious checks for the memory leaks using
tools like valgrind. This patch tries to implement a graceful
exit for all tvheadend components and free allocated memory.

Also, some memory leaks were fixed.