From: Zack Rusin Date: Mon, 29 Aug 2011 03:28:05 +0000 (-0400) Subject: nasty hack, but for now we need to keep the pointers X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=0983c32931fa376ad96493a910d994b4fab27eb0;p=apitrace nasty hack, but for now we need to keep the pointers otherwise if we try to print the vertex/texture data we'll crash --- 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); }