]> git.cworth.org Git - apitrace/commitdiff
nasty hack, but for now we need to keep the pointers
authorZack Rusin <zack@kde.org>
Mon, 29 Aug 2011 03:28:05 +0000 (23:28 -0400)
committerZack Rusin <zack@kde.org>
Mon, 29 Aug 2011 03:28:05 +0000 (23:28 -0400)
otherwise if we try to print the vertex/texture data we'll crash

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);
 }