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