summaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorZack Rusin <zack@kde.org>2011-08-28 23:28:05 -0400
committerZack Rusin <zack@kde.org>2011-08-28 23:28:05 -0400
commit0983c32931fa376ad96493a910d994b4fab27eb0 (patch)
treedafbdd436118e8bcb5299cfa100abb022094015e /gui
parent77ff98a6bc65e7ddf29e241e6b40e5ac63337871 (diff)
nasty hack, but for now we need to keep the pointers
otherwise if we try to print the vertex/texture data we'll crash
Diffstat (limited to 'gui')
-rw-r--r--gui/apitracecall.cpp1
1 files changed, 1 insertions, 0 deletions
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);
}