#include <simgear/compiler.h>
-#include SG_GL_H
+#include <osg/GL>
#include "screen-dump.hxx"
ibuffer = (unsigned char *) malloc(win_width*win_height*RGB3);
if ( (fp = fopen(filename, "wb")) == NULL ) {
+ free(ibuffer);
printf("Warning: cannot open %s\n", filename);
return false;
}