projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Viewport: Anti-alias time items, but not row items
[pulseview.git]
/
pv
/
data
/
analogsegment.cpp
diff --git
a/pv/data/analogsegment.cpp
b/pv/data/analogsegment.cpp
index c1a119e4cd13305f3caa91f98c6a420ab918d927..3703f0d02780e13f86ffc962e93beadea1c5a1ce 100644
(file)
--- a/
pv/data/analogsegment.cpp
+++ b/
pv/data/analogsegment.cpp
@@
-69,6
+69,7
@@
void AnalogSegment::append_interleaved_samples(const float *data,
lock_guard<recursive_mutex> lock(mutex_);
+ // If we're out of memory, this will throw std::bad_alloc
data_.resize((sample_count_ + sample_count) * sizeof(float));
float *dst = (float*)data_.data() + sample_count_;