Use QScopedPointer (RAII) to do not care of the udev resources
It is a good idea to get rid from the manually releasing of the
allocated udev resources.
Tested on ArchLinux 64 bit with on-board and PL2303 serial ports using
Qt4 and then Qt5.
Change-Id: Ib25e100bea37ad3cc0bee015b7de6d4de762f2cc
Reviewed-by: Peter Kümmel <syntheticpp@gmx.net>
Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com>
| commit | 2cde429d3bd3adc2bfc7d268fb64aad97a07e0e1 |
| parent | 6aa21015ea0a956d8a563dd3b52f4701368b4f2d |
| author | Denis Shienkov <denis.shienkov@gmail.com> |
| committer | The Qt Project <gerrit-noreply@qt-project.org> |
| commit time | Sat, 7 Jun 2014 17:58:25 +0200 |