Skip to content

Commit 8745ce6

Browse files
committed
HistoryManager: make sure we have a waveform before attempting to free it
1 parent 4735084 commit 8745ce6

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/ngscopeclient/HistoryManager.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* *
33
* ngscopeclient *
44
* *
5-
* Copyright (c) 2012-2025 Andrew D. Zonenberg and contributors *
5+
* Copyright (c) 2012-2026 Andrew D. Zonenberg and contributors *
66
* All rights reserved. *
77
* *
88
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the *
@@ -419,6 +419,9 @@ bool HistoryManager::OnMemoryPressure(
419419
auto& hist = it.second;
420420
for(auto jt : hist)
421421
{
422+
if(jt.second == nullptr)
423+
continue;
424+
422425
if(jt.second->HasGpuBuffer())
423426
{
424427
memFreed = true;

0 commit comments

Comments
 (0)