[fix] Change the way inheritance is done to combat memory leaks
[fix] Change the way inheritance is done to combat memory leaks

STRML/primus,clanwqq/primus,colinbate/primus,STRML/primus,modulexcite/primus,basarat/primus,dercodebearer/primus,dercodebearer/primus,STRML/primus,primus/primus,beni55/primus,basarat/primus,dercodebearer/primus,colinbate/primus,beni55/primus,colinbate/primus,modulexcite/primus,primus/primus,clanwqq/primus,beni55/primus,modulexcite/primus,clanwqq/primus,primus/primus,basarat/primus