On 07/12/2011 06:38 AM, Zhenbo Xu wrote:
Hi all,
I have been detecting memory leaks in mesa for SPEC2000,
and I found a kind of memory leaks shown in the following code

gl_text_image* image_to_texture(...) {
   ...
   textImage = gl_alloc_texttrue_image(...);
   if (!textImage)
     return NULL;
   ...
switch (image->Type) {
     case ...
     ...
     default:
         gl_problem(...)
          return NULL; //here without releasing textImage
   }
}

Is it a memory leak ?

Possibly.  Where is this code exactly?

-Brian

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to