view pidgin/plugins/crazychat/sharky.h @ 26307:a28827fdea16

Free some memory if we exit early due to an error. Thanks to Mayank Jain Nawal's email to the devel list for pointing this out. Oh, and I didn't test these changes at all... I guess I probably should.
author Mark Doliner <mark@kingant.net>
date Fri, 27 Mar 2009 09:09:00 +0000
parents 5fe8042783c1
children
line wrap: on
line source

#include "glm.h"

struct shark_struct{
	GLint* faces, *lids, *fins, *eyes, *iris, *pupil;
	GLMmodel** m_faces, **m_lids, **m_fins, **m_eyes, **m_iris, **m_pupil;
	int curr_face, curr_fin, curr_left_lid, curr_right_lid, curr_right_eye, curr_left_eye, curr_pupil, eye_count;
	float curr_fin_angle;
};

void init_shark(FACE f);