Commit 922a6fe2 authored by claes's avatar claes

A memory leakage fixed

parent db054214
......@@ -1164,7 +1164,10 @@ int wb_vrepwbl::getTemplateBody( pwr_tCid cid, pwr_eBix bix, size_t *size, void
if ( EVEN(sts)) return 0;
wb_bdrep *bdrep = cdrep->bdrep( &sts, bix);
if ( EVEN(sts)) return 0;
if ( EVEN(sts)) {
delete cdrep;
return 0;
}
*size = bdrep->size();
delete bdrep;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment