[Core]: More memory leaks plugged

Almost done plugging memory leaks. Just have to write destructors for the
component base classes.

Signed-off-by: Sebastian Lenartowicz <slenarto@uoguelph.ca>