]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Add missing [] to array-delete.
authormtadel <mtadel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 28 May 2008 20:28:08 +0000 (20:28 +0000)
committermtadel <mtadel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 28 May 2008 20:28:08 +0000 (20:28 +0000)
EVE/EveDet/AliEveTPCSector2DGL.cxx

index c7c0dafb8a90db6942e130217d06cce6103f8974..0f21694fce83213292109c83ef13add17adc71ec 100644 (file)
@@ -47,7 +47,7 @@ AliEveTPCSector2DGL::~AliEveTPCSector2DGL()
   // Destructor.
   // !!!! Should unregister texture via ContextIdentity!
 
   // Destructor.
   // !!!! Should unregister texture via ContextIdentity!
 
-  if (fImage)   delete fImage;
+  if (fImage)   delete [] fImage;
   if (fTexture) glDeleteTextures(1, &fTexture);
 }
 
   if (fTexture) glDeleteTextures(1, &fTexture);
 }
 
@@ -210,7 +210,7 @@ void AliEveTPCSector2DGL::CreateTexture() const
 {
   // Create texture that holds pad data.
 
 {
   // Create texture that holds pad data.
 
-  if (fImage == 0 ) {
+  if (fImage == 0) {
     fImage = new UChar_t[fgkTextureByteSize];
     glGenTextures(1, &fTexture);
   }
     fImage = new UChar_t[fgkTextureByteSize];
     glGenTextures(1, &fTexture);
   }