Changing inheritence patterns; still experiencing a memory leak