biomolecules / sprelay

Program for controlling K8090 relay card.
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Get rid of combinations of std::unique_ptr and Qt's ownership system. #56

Closed lumik closed 6 years ago

lumik commented 6 years ago

The combination of Qt's ownership system and std::unique_ptr is dangerous and can cause dnagling pointer inside std::unique_ptr. Move to Qt's ownership system inside Qt's code whenever the parent can be specified as a constructor parameter.