Fixed memory leaks
Fixed memory leaks

meganz/sdk,Sisky/sdk,meganz/sdk,meganz/sdk,SuperStarPL/sdk,Acidburn0zzz/sdk,PatrickJBaird/sdk,SuperStarPL/sdk,Acidburn0zzz/sdk,Acidburn0zzz/sdk,Sisky/sdk,meganz/sdk,Acidburn0zzz/sdk,Sisky/sdk,PatrickJBaird/sdk,SuperStarPL/sdk,Acidburn0zzz/sdk,Sisky/sdk,PatrickJBaird/sdk,meganz/sdk,SuperStarPL/sdk,BiuroCo/mega,Sisky/sdk,BiuroCo/mega,meganz/sdk,Acidburn0zzz/sdk,SuperStarPL/sdk,SuperStarPL/sdk,BiuroCo/mega,Acidburn0zzz/sdk,PatrickJBaird/sdk,BiuroCo/mega,meganz/sdk,BiuroCo/mega,PatrickJBaird/sdk,BiuroCo/mega,Acidburn0zzz/sdk,PatrickJBaird/sdk,Sisky/sdk