goat3d

diff src/goat3d.cc @ 45:8da36540e2e9

fixed memory leak in readxml and reversed error return
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 08 Dec 2013 02:27:32 +0200
parents da3f335e0069
children 498ca7ac7047
line diff
     1.1 --- a/src/goat3d.cc	Sun Dec 08 02:14:46 2013 +0200
     1.2 +++ b/src/goat3d.cc	Sun Dec 08 02:27:32 2013 +0200
     1.3 @@ -132,7 +132,7 @@
     1.4  GOAT3DAPI int goat3d_load_io(struct goat3d *g, struct goat3d_io *io)
     1.5  {
     1.6  	if(!g->scn->load(io)) {
     1.7 -		if(g->scn->loadxml(io)) {
     1.8 +		if(!g->scn->loadxml(io)) {
     1.9  			return -1;
    1.10  		}
    1.11  	}