Fix some indentation glitches

Signed-off-by: Andre Luiz Viana Loureiro <andre.vl@samsung.com>
Applying some improvements on release buffers and fix exception on change resolution

Signed-off-by: Andre Luiz Viana Loureiro <andre.vl@samsung.com>