Quellcode durchsuchen

mesa: protect against double-free in _vbo_DestroyContext()

tags/mesa_20090313
Brian Paul vor 17 Jahren
Ursprung
Commit
4992806ae5
1 geänderte Dateien mit 6 neuen und 4 gelöschten Zeilen
  1. 6
    4
      src/mesa/vbo/vbo_context.c

+ 6
- 4
src/mesa/vbo/vbo_context.c Datei anzeigen

@@ -246,12 +246,14 @@ void _vbo_DestroyContext( GLcontext *ctx )
ctx->aelt_context = NULL;
}

vbo_exec_destroy(ctx);
if (vbo_context(ctx)) {
vbo_exec_destroy(ctx);
#if FEATURE_dlist
vbo_save_destroy(ctx);
vbo_save_destroy(ctx);
#endif
FREE(vbo_context(ctx));
ctx->swtnl_im = NULL;
FREE(vbo_context(ctx));
ctx->swtnl_im = NULL;
}
}



Laden…
Abbrechen
Speichern