Hi all,<div>I have been detecting memory leaks in mesa for SPEC2000,</div><div>and I found a kind of memory leaks shown in the following code</div><div><br></div><div>gl_text_image* image_to_texture(...) {</div><div>  ...</div>
<div>  textImage = gl_alloc_texttrue_image(...);</div><div>  if (!textImage)</div><div>    return NULL;</div><div>  ...</div><div>  <span class="keyword">switch</span> (image-&gt;Type) {</div><div>    case ...</div><div>    ...</div>
<div>    default:</div><div>        gl_problem(...)</div><div>         return NULL;   <font class="Apple-style-span" color="#cc0000">//here without releasing textImage</font></div><div>  }</div><div>}</div><div><div><br></div>
<div>Is it a memory leak ?</div><div>Hope for your replies! <br>--
<div>Zhenbo Xu</div></div></div>