]> sigrok.org Git - pulseview.git/commitdiff
Fix #605 by closing current device when another is selected
authorSoeren Apel <redacted>
Fri, 4 Sep 2015 01:34:08 +0000 (03:34 +0200)
committerSoeren Apel <redacted>
Fri, 4 Sep 2015 01:34:08 +0000 (03:34 +0200)
As the device manager class holds a pointer to all devices
they will never be destroyed until PV exits. Devices are
opened with the first call to create() but only closed in
the destructor. Together, this results in devices never
being closed.

This patch fixes this by renaming create() to open()
and introducing a matching close() method that the
session class calls when a different device is to be
selected.


No differences found