summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorErkin Bahceci <erkinbah@gmail.com>2009-08-14 23:17:31 -0500
committerErkin Bahceci <erkinbah@gmail.com>2009-08-14 23:17:31 -0500
commit0310d1ddb4247d52135bc7fe304b3b7964db3660 (patch)
tree7b0b1df508a57e09ff516903681c7dd24ccb7099 /src
parent71d7c14fb2d9fa74db80b18964e16d04d8bdb089 (diff)
downloadzcomp-0310d1ddb4247d52135bc7fe304b3b7964db3660.tar.gz
zcomp-0310d1ddb4247d52135bc7fe304b3b7964db3660.tar.bz2
Delete arrays with delete [].
Diffstat (limited to 'src')
-rw-r--r--src/window.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/window.cpp b/src/window.cpp
index 408a7f7..ba67108 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -3868,7 +3868,7 @@ PrivateWindow::readIconHint ()
icon = new CompIcon (screen, width, height);
if (!icon)
{
- free (colors);
+ delete [] colors;
return;
}
@@ -3895,7 +3895,7 @@ PrivateWindow::readIconHint ()
}
}
- free (colors);
+ delete [] colors;
if (maskImage)
XDestroyImage (maskImage);