Added the freeing of the newed pointers
Added the freeing of the newed pointers

hejunbok/qgroundcontrol,dagoodma/qgroundcontrol,TheIronBorn/qgroundcontrol,caoxiongkun/qgroundcontrol,devbharat/qgroundcontrol,mihadyuk/qgroundcontrol,RedoXyde/PX4_qGCS,remspoor/qgroundcontrol,jy723/qgroundcontrol,RedoXyde/PX4_qGCS,hejunbok/qgroundcontrol,cfelipesouza/qgroundcontrol,ethz-asl/qgc_asl,catch-twenty-two/qgroundcontrol,LIKAIMO/qgroundcontrol,cfelipesouza/qgroundcontrol,UAVenture/qgroundcontrol,UAVenture/qgroundcontrol,mihadyuk/qgroundcontrol,kd0aij/qgroundcontrol,lis-epfl/qgroundcontrol,dagoodma/qgroundcontrol,dagoodma/qgroundcontrol,iidioter/qgroundcontrol,fizzaly/qgroundcontrol,iidioter/qgroundcontrol,nado1688/qgroundcontrol,UAVenture/qgroundcontrol,TheIronBorn/qgroundcontrol,jy723/qgroundcontrol,RedoXyde/PX4_qGCS,ethz-asl/qgc_asl,nado1688/qgroundcontrol,iidioter/qgroundcontrol,dagoodma/qgroundcontrol,hejunbok/qgroundcontrol,LIKAIMO/qgroundcontrol,catch-twenty-two/qgroundcontrol,fizzaly/qgroundcontrol,cfelipesouza/qgroundcontrol,cfelipesouza/qgroundcontrol,UAVenture/qgroundcontrol,caoxiongkun/qgroundcontrol,scott-eddy/qgroundcontrol,CornerOfSkyline/qgroundcontrol,CornerOfSkyline/qgroundcontrol,devbharat/qgroundcontrol,nado1688/qgroundcontrol,ethz-asl/qgc_asl,jy723/qgroundcontrol,jy723/qgroundcontrol,scott-eddy/qgroundcontrol,RedoXyde/PX4_qGCS,greenoaktree/qgroundcontrol,Hunter522/qgroundcontrol,devbharat/qgroundcontrol,lis-epfl/qgroundcontrol,caoxiongkun/qgroundcontrol,catch-twenty-two/qgroundcontrol,remspoor/qgroundcontrol,CornerOfSkyline/qgroundcontrol,RedoXyde/PX4_qGCS,CornerOfSkyline/qgroundcontrol,LIKAIMO/qgroundcontrol,CornerOfSkyline/qgroundcontrol,TheIronBorn/qgroundcontrol,kd0aij/qgroundcontrol,hejunbok/qgroundcontrol,iidioter/qgroundcontrol,remspoor/qgroundcontrol,dagoodma/qgroundcontrol,CornerOfSkyline/qgroundcontrol,LIKAIMO/qgroundcontrol,mihadyuk/qgroundcontrol,TheIronBorn/qgroundcontrol,BMP-TECH/qgroundcontrol,jy723/qgroundcontrol,Hunter522/qgroundcontrol,greenoaktree/qgroundcontrol,jy723/qgroundcontrol,caoxiongkun/qgroundcontrol,UAVenture/qgroundcontrol,cfelipesouza/qgroundcontrol,kd0aij/qgroundcontrol,nado1688/qgroundcontrol,kd0aij/qgroundcontrol,mihadyuk/qgroundcontrol,fizzaly/qgroundcontrol,catch-twenty-two/qgroundcontrol,BMP-TECH/qgroundcontrol,ethz-asl/qgc_asl,TheIronBorn/qgroundcontrol,fizzaly/qgroundcontrol,dagoodma/qgroundcontrol,LIKAIMO/qgroundcontrol,BMP-TECH/qgroundcontrol,scott-eddy/qgroundcontrol,caoxiongkun/qgroundcontrol,caoxiongkun/qgroundcontrol,catch-twenty-two/qgroundcontrol,RedoXyde/PX4_qGCS,BMP-TECH/qgroundcontrol,greenoaktree/qgroundcontrol,fizzaly/qgroundcontrol,greenoaktree/qgroundcontrol,remspoor/qgroundcontrol,remspoor/qgroundcontrol,iidioter/qgroundcontrol,mihadyuk/qgroundcontrol,BMP-TECH/qgroundcontrol,lis-epfl/qgroundcontrol,ethz-asl/qgc_asl,Hunter522/qgroundcontrol,devbharat/qgroundcontrol,nado1688/qgroundcontrol,scott-eddy/qgroundcontrol,Hunter522/qgroundcontrol,Hunter522/qgroundcontrol,nado1688/qgroundcontrol,devbharat/qgroundcontrol,LIKAIMO/qgroundcontrol,kd0aij/qgroundcontrol,hejunbok/qgroundcontrol,Hunter522/qgroundcontrol,lis-epfl/qgroundcontrol,hejunbok/qgroundcontrol,scott-eddy/qgroundcontrol,greenoaktree/qgroundcontrol,cfelipesouza/qgroundcontrol,catch-twenty-two/qgroundcontrol,TheIronBorn/qgroundcontrol,devbharat/qgroundcontrol,remspoor/qgroundcontrol,UAVenture/qgroundcontrol,kd0aij/qgroundcontrol,greenoaktree/qgroundcontrol,scott-eddy/qgroundcontrol,lis-epfl/qgroundcontrol,iidioter/qgroundcontrol,BMP-TECH/qgroundcontrol,fizzaly/qgroundcontrol,mihadyuk/qgroundcontrol