From 0983c32931fa376ad96493a910d994b4fab27eb0 Mon Sep 17 00:00:00 2001 From: Zack Rusin Date: Sun, 28 Aug 2011 23:28:05 -0400 Subject: [PATCH] nasty hack, but for now we need to keep the pointers otherwise if we try to print the vertex/texture data we'll crash --- gui/apitracecall.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/gui/apitracecall.cpp b/gui/apitracecall.cpp index 58d5d72..bd30aaa 100644 --- a/gui/apitracecall.cpp +++ b/gui/apitracecall.cpp @@ -215,6 +215,7 @@ void VariantVisitor::visit(Trace::Blob *blob) // Blob's will start deleting the data we will need to // start deep copying it or switch to using something like // Boost's shared_ptr or Qt's QSharedPointer to handle it + blob->toPointer(true); QByteArray barray = QByteArray::fromRawData(blob->buf, blob->size); m_variant = QVariant(barray); } -- 2.43.0