Added a new variable to iio.Buffer stored in self._ctx, this is reference to a Context variable. This reference ensures that the Context outlives the buffer, if this is not the case a segmentation violation will occur when destroying the buffer.
Added a new variable to iio.Buffer stored in self._ctx, this is reference to a Context variable. This reference ensures that the Context outlives the buffer, if this is not the case a segmentation violation will occur when destroying the buffer.

Signed-off-by: Jonas Hansen <82b7fb6c7a393e156e40fe12b4b2d3c6462507f4@gomspace.com>

analogdevicesinc/libiio,analogdevicesinc/libiio,analogdevicesinc/libiio,analogdevicesinc/libiio