Sly14 / freetype-gl

Automatically exported from code.google.com/p/freetype-gl
Other
0 stars 0 forks source link

memory leak in vertex-buffer.cpp #26

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
/*** problem: ***/
vertex_buffer_t *
vertex_buffer_new( const char *format ){
...
self->items = vector_new( sizeof(ivec4) );
...
}

/*** fix: ***/
void
vertex_buffer_delete( vertex_buffer_t *self ){
...
if(NULL != self->items)
vector_delete( self->items );
...
}

Original issue reported on code.google.com by bso...@gmail.com on 18 Jul 2012 at 9:24

GoogleCodeExporter commented 8 years ago
Thanks. It has been corrected !

Original comment by Nicolas.Rougier@gmail.com on 19 Jul 2012 at 8:41