Remove unused variables.

Partialy fixes CID #966363
Fix Uninitialized pointer field

CID #966281, #966310, #966313, #966314, #966328, #966329, #966346,
 #966354, #966358, #966361, #966371, #966372, #966378, #1041190
Cosmetics in CSyncAP, CBaseAP and CEVRAllocatorPresenter constructor for coverity
fixes and better readability.

Fixes CID #966315, #966319, #966320