[Memory Leak] Partial fix for bug 129
[Memory Leak] Partial fix for bug 129

https://github.com/01org/dleyna-renderer/issues/129

This commit attempts to partially fix bug 129.  It cannot be
completely fixed at the moment due to a bug in GUPnP.

https://bugzilla.gnome.org/show_bug.cgi?id=708751

At least we're freeing the list now, if not the strings that it
contains.  Also, to reduce the effect of the memory leak, this
commit ensures that it only happens once per renderer rather than
once each time we receive an event from a renderer.  The assumption
is that a device will not dynamically change the DLNA classes that
it supports.

Signed-off-by: Mark Ryan <f16215f7acd0bd7fdc465539215bd574c785b062@intel.com>

puleglot/dleyna-renderer,01org/dleyna-renderer,jku/dleyna-renderer,lferrandis/dleyna-renderer,jku/dleyna-renderer,rmerlino/dleyna-renderer,debarshiray/dleyna-renderer,rmerlino/dleyna-renderer,UIKit0/dleyna-renderer,debarshiray/dleyna-renderer,01org/dleyna-renderer,puleglot/dleyna-renderer,01org/dleyna-renderer,01org/dleyna-renderer,lferrandis/dleyna-renderer,rmerlino/dleyna-renderer,lferrandis/dleyna-renderer,puleglot/dleyna-renderer,KobaltRo/dleyna-renderer,UIKit0/dleyna-renderer,lferrandis/dleyna-renderer,debarshiray/dleyna-renderer,UIKit0/dleyna-renderer,KobaltRo/dleyna-renderer,jku/dleyna-renderer,rmerlino/dleyna-renderer,debarshiray/dleyna-renderer,KobaltRo/dleyna-renderer