comparison GUIProgressBar.cpp @ 2440:2b10278bc7ac

some more memory access fixed
author Grumpy7
date Thu, 24 Jul 2014 01:10:50 +0200
parents 6d5877899730
children b054ea5daf45
comparison
equal deleted inserted replaced
2437:ea7748f4dc60 2440:2b10278bc7ac
120 //----- (004435E2) -------------------------------------------------------- 120 //----- (004435E2) --------------------------------------------------------
121 void GUIProgressBar::Release() 121 void GUIProgressBar::Release()
122 { 122 {
123 int v3; // edi@7 123 int v3; // edi@7
124 124
125 pLoadingBg.Release();
125 if ( this->uType == 1 ) 126 if ( this->uType == 1 )
126 { 127 {
127 if ( !this->pLoadingBg.pPixels )
128 return;
129 if ( this->uProgressCurrent != this->uProgressMax ) 128 if ( this->uProgressCurrent != this->uProgressMax )
130 { 129 {
131 this->uProgressCurrent = this->uProgressMax - 1; 130 this->uProgressCurrent = this->uProgressMax - 1;
132 Progress(); 131 Progress();
133 } 132 }
134 free(this->pLoadingBg.pPixels);
135 v3 = (int)&this->pLoadingProgress.pLevelOfDetail0_prolly_alpha_mask; 133 v3 = (int)&this->pLoadingProgress.pLevelOfDetail0_prolly_alpha_mask;
136 free(this->pLoadingProgress.pLevelOfDetail0_prolly_alpha_mask); 134 free(this->pLoadingProgress.pLevelOfDetail0_prolly_alpha_mask);
137 free(this->pLoadingProgress.pPalette16); 135 free(this->pLoadingProgress.pPalette16);
138 this->pLoadingProgress.pPalette16 = 0; 136 this->pLoadingProgress.pPalette16 = 0;
139 this->pLoadingBg.pPixels = 0;
140 } 137 }
141 else 138 else
142 { 139 {
143 if ( !this->pBardata.pLevelOfDetail0_prolly_alpha_mask ) 140 if ( !this->pBardata.pLevelOfDetail0_prolly_alpha_mask )
144 return; 141 return;