Commit 0699402f authored by claes's avatar claes

Mismatch in ref/unref for classvolumes using itself as classvolume

parent c7df18c3
......@@ -309,7 +309,6 @@ int wb_vrepwbl::load( const char *fname)
if ( ODD(sts))
m_merep->removeDbs( &sts, mvrep);
m_merep->addDbs( &sts, (wb_mvrep *)this);
m_nRef--;
}
return rsts;
}
......
......@@ -3522,6 +3522,7 @@ static int wnav_create_func( void *client_data,
try {
wb_erep *erep = *(wb_env *)wnav->wbctx;
wb_vrepwbl *wbl = new wb_vrepwbl(erep);
wbl->ref();
sts = wbl->load( filestr);
if ( ODD(sts) || ignore)
wbl->createSnapshot( outstr_p);
......
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