X-Git-Url: http://xvm.mit.edu/gitweb/invirt/third/libt4.git/blobdiff_plain/5a5c578e2e358a121cdb9234a6cb11c4ecfbf323..5bb7eb131773abd9e642f83629528b4c4e706b2e:/handle.cc diff --git a/handle.cc b/handle.cc index 3b6e1fa..d32c895 100644 --- a/handle.cc +++ b/handle.cc @@ -62,10 +62,11 @@ hinfo * handle_mgr::acquire_handle(string m) { if (hmap.find(m) == hmap.end()) { h = new hinfo(m); hmap[m] = h; + h->refcnt++; } else if (!hmap[m]->del) { h = hmap[m]; + h->refcnt++; } - h->refcnt++; return h; }