Skip to content
Permalink
Browse files

Fix alloc-dealloc-mismatch

  • Loading branch information
m-kuhn committed Jul 12, 2015
1 parent 8c5b48c commit e2319fd1f5875ed15ead53f3d5ee0d06c1650ac0
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/src/core/testqgsfeature.cpp
@@ -256,7 +256,7 @@ void TestQgsFeature::geometry()
copy = feature;
QCOMPARE( *copy.constGeometry()->asWkb(), *mGeometry.data()->asWkb() );
size_t wkbSize = mGeometry2->wkbSize();
unsigned char* wkb = ( unsigned char* )malloc( wkbSize );
unsigned char* wkb = new unsigned char[wkbSize];
memcpy( wkb, mGeometry2->asWkb(), wkbSize );
copy.setGeometryAndOwnership( wkb, wkbSize );
QCOMPARE( *copy.constGeometry()->asWkb(), *mGeometry2->asWkb() );

0 comments on commit e2319fd

Please sign in to comment.
You can’t perform that action at this time.