main: fix some potential memory leaks
authorBrian Paul <brianp@vmware.com>
Thu, 13 Aug 2009 19:48:36 +0000 (13:48 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 13 Aug 2009 19:48:36 +0000 (13:48 -0600)
commitad8a6937ae9933ab92f2b775410c27ec7a9afe42
treedf15859b7482b3f32cc286cfe017ddf00f0a0659
parentf418d18ea6059c761f45f055c05fbd0bb50f7a80
main: fix some potential memory leaks

Allocate dlist images after error checking.
Record GL_OUT_OF_MEMORY when we can't make a copy of an image.
src/mesa/main/dlist.c