﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc	mlocked
10807	[PATCH] libmythui: Prevent memory leak and dangling reference to MythUIType children	Lawrence Rust <lvr@…>	stuartm	"Although ownership of all MythUIType objects is transferred to the parent during construction, the MythUIType destructor doesn't delete its children, resulting in a memory leak found by valgrind.

Also, because of the ownership semantics, MythUIType's dtor should be protected.  This uncovers a bug in MythUIButtonList::CopyFrom which should use the base DeleteChild (rather than a direct delete) otherwise a dangling reference is left.

This bug and patch apply to git master, fixes/0.25 and fixes/0.24 (maybe more).

P.S. IMHO the base class XMLParseBase of MythUIType should be protected otherwise it defeats abstraction."	Patch - Bug Fix	closed	minor	unknown	MythTV - General	Master Head	medium	Invalid	MythUIType memory leak		0
