Mercurial > otakunoraifu
diff scn2k/scn2k_grp.cc @ 50:35ce1a30f3f9
* Added va_end where there is a va_start
* Used NULL instead of 0 (so it works on 64b)
author | thib |
---|---|
date | Fri, 17 Apr 2009 18:38:06 +0000 |
parents | ed6c21dde840 |
children | 15a18fbe6f21 |
line wrap: on
line diff
--- a/scn2k/scn2k_grp.cc +++ b/scn2k/scn2k_grp.cc @@ -510,6 +510,7 @@ TextStream GrpObj::ParseMoji(const char* str, int def_r ,int def_g, int def_b, int def_size) { // 制御シーケンス付き文字列をparse } } ts.Add(str); + delete[] copy_str; return ts; } void GrpObj::UpdateMoji(void) { // 文字の大きさ、色などを変更 @@ -845,6 +846,7 @@ GrpImpl::~GrpImpl() { delete screen; delete screen_front; parent.Root().DeleteSurface(surface); + parent.Root().DeleteSurface(surface_update); int i; for (i=0; i<MAXPDT; i++) { if (ssurface[i]) parent.Root().DeleteSurface(ssurface[i]);