Skip to content

Commit

Permalink
Fix alloc-dealloc-mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Jul 27, 2015
1 parent 8c5b48c commit e2319fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/src/core/testqgsfeature.cpp
Expand Up @@ -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() );
Expand Down

0 comments on commit e2319fd

Please sign in to comment.