]> git.cworth.org Git - apitrace/blobdiff - gui/apitracecall.cpp
nasty hack, but for now we need to keep the pointers
[apitrace] / gui / apitracecall.cpp
index 58d5d7224fd9ce38ab8fd9614945e0b12d4eb4f4..bd30aaaa89aff9a333ea84f13dc534e2b62d4a42 100644 (file)
@@ -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);
 }