]> sigrok.org Git - pulseview.git/commit
Snapshot classes: Use vector instead of raw pointer
authorJens Steinhauser <redacted>
Wed, 27 Aug 2014 09:12:40 +0000 (11:12 +0200)
committerUwe Hermann <redacted>
Wed, 27 Aug 2014 16:54:35 +0000 (18:54 +0200)
commitc82c7e4e330ce5aa04c4f3b8e6f8de85e3e288e1
tree22d9ba61b43fe00914069ea766e678e3a7c664fb
parent3c1001230d7dd6ee68d21ed46082f5f97d3b4bfc
Snapshot classes: Use vector instead of raw pointer

As a side-effect this turns a segfault (see bug #397) into a segfault
with a more usable message:

  terminate called after throwing an instance of 'std::bad_alloc'
    what():  std::bad_alloc
  Aborted (core dumped)
pv/data/analogsnapshot.cpp
pv/data/logicsnapshot.cpp
pv/data/snapshot.cpp
pv/data/snapshot.h