coverity#982921 do not leak

Change-Id: I7f40b7e72caa67644b23f02fa6c2a4ccfe4f354d
coverity#1242510 arguments in wrong order

Change-Id: I898f3e383f5ff3451860e49b0ea00111ed1b52c2
I think this should be Left()

Change-Id: Ifd83a4a28414ffa5d8cc3cec3def4361737a333e
coverity#1242514 arguments in wrong order

Change-Id: Icc6d4f0375106b670dd1efd04395f3c163bdd65d
I think this should be Left()

Change-Id: I8588809ce636107b4e9a51c5a1f4bc7af3f23f0d
I think this should be Left()

Change-Id: I603215180e86ca28b94b129378ec48b7658e37b5
coverity#1240253 unchecked return value

Change-Id: I0262cb51fbc0b8e4bb6d6aabbd59a7c271768a99
coverity#1209103 copy-paste error

Change-Id: I9ed3ef809401ecf23e9c1f9bd020cf96049b56f0
coverity#982488 unchecked dynamic_cast

Change-Id: I7008b3a96400a4d1520a03d985c0b421ff587bcb
coverity#982160 unchecked return value

Change-Id: I94117e9f53f1929906b88b2a31d0fcfdf2e40c8d
coverity#982161 unchecked return value

Change-Id: I3c8370915898e322f40812b52929132e192b3a2c
coverity#982188 unchecked return value

Change-Id: I8b99afa5d43e1a9f003c3b31175d73bf5a289232
remove some extra empty lines

Change-Id: I88b95a253f19306c6519987a4a8f72e9362d4d9a