Fix a use-after-free issue
Fix a use-after-free issue

In CBinaryStream, a member gets used after it has been destroyed. This was
caught by a static code analyser.

Issue: GMINL-1702
Change-Id: I5c93855f12a8f392e1f4249a15048816fb0f13ce
Signed-off-by: David Wagner <60228a510f9a76940848fa2d29321fc4edfc2119@intel.com>
Reviewed-on: https://android.intel.com/278483
Reviewed-by: cactus <c3ee75fbaae48de2b78e493a0872d74c3ea268c4@intel.com>
Tested-by: cactus <c3ee75fbaae48de2b78e493a0872d74c3ea268c4@intel.com>
Reviewed-by: Beatty, Robert M <1de692bd2b2a455c0c774de31e7a5fdb31dd53f9@intel.com>
Tested-by: Beatty, Robert M <1de692bd2b2a455c0c774de31e7a5fdb31dd53f9@intel.com>

clero/parameter-framework,zchokri/parameter-framework,soaresm/parameter-framework,mgaio/parameter-framework,dawagner/parameter-framework,Makohoek/parameter-framework,soaresm/parameter-framework,AdrienMQ/parameter-framework,dbrageul/parameter-framework,anwarMov/parameter-framework,mgaio/parameter-framework,miguelgaio/parameter-framework,sdnnfv/parameter-framework,dawagner/parameter-framework,pafonso/parameter-framework,01org/parameter-framework,Makohoek/parameter-framework,krocard/parameter-framework,android-ia/hardware_intel_parameter-framework,zchokri/parameter-framework,dbrageul/parameter-framework,clero/parameter-framework,krocard/parameter-framework,sdnnfv/parameter-framework,miguelgaio/parameter-framework,android-ia/hardware_intel_parameter-framework,geekboxzone/mmallow_external_parameter-framework,geekboxzone/mmallow_external_parameter-framework,dbrageul/parameter-framework,wzairix/parameter-framework,miguelgaio/parameter-framework,anwarMov/parameter-framework,wzairix/parameter-framework,tcahuzax/parameter-framework,pafonso/parameter-framework,android-ia/hardware_intel_parameter-framework,soaresm/parameter-framework,AdrienMQ/parameter-framework,Makohoek/parameter-framework,dawagner/parameter-framework,01org/parameter-framework,clero/parameter-framework,01org/parameter-framework,pafonso/parameter-framework,krocard/parameter-framework,tcahuzax/parameter-framework,wzairix/parameter-framework,anwarMov/parameter-framework,mgaio/parameter-framework,geekboxzone/mmallow_external_parameter-framework,tcahuzax/parameter-framework,zchokri/parameter-framework,AdrienMQ/parameter-framework,sdnnfv/parameter-framework