Fix layer's memory errors
Fixes the wrong allocation of extensions properties.
Adds a call to the dispacher's DestroyInstance function before the destruction of the instance.
Change-Id: I169bb3ba670d89e30af1f6ce47c536477978c169 Signed-off-by: Iason Paraskevopoulos iason.paraskevopoulos@arm.com