<div>hello there,<br>=========================================================<br>intel_region_release(struct intel_region **region)<br>{<br> if (!*region)<br> return;<br><br> DBG("%s %d\n", __FUNCTION__, (*region)->refcount - 1);<br><br> ASSERT((*region)->refcount > 0);<br> (*region)->refcount--;<br><br> if ((*region)->refcount == 0) {<br> assert((*region)->map_refcount == 0);<br><br> if ((*region)->pbo)<br> (*region)->pbo->region = NULL;<br> (*region)->pbo = NULL;<br> dri_bo_unreference((*region)->buffer);<br> free(*region);<br> }<br> *region = NULL;<br>}<br>==========================================<br>If
there are two contexts made current on this region of rb, after
"(*region)->refcount--;" is it possible refcount still be larger
than "0", and it will not be free then leaked?<br>Thanks!<br></div><br><br><span title="neteasefooter"/><hr/>
<a href="http://news.163.com/madeinchina/index.html?from=mailfooter">"中国制造",讲述中国60年往事</a>
</span>