summaryrefslogtreecommitdiff
path: root/modules/modWall.c
diff options
context:
space:
mode:
authororoborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-07-04 19:16:27 +0000
committeroroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-07-04 19:16:27 +0000
commit247baf298bf2425fd91297ea18d716e714cb3dc5 (patch)
treecfe9277e1d8086d2b38b13f2caf75dea4b73c41e /modules/modWall.c
parent157e2a29828f2ddbdf32e1c9e565b13e5e732e34 (diff)
- podpora bigAren :-)
- radar git-svn-id: http://opensvn.csie.org/tuxanci_ng@90 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'modules/modWall.c')
-rwxr-xr-xmodules/modWall.c18
1 files changed, 15 insertions, 3 deletions
diff --git a/modules/modWall.c b/modules/modWall.c
index 056bb5c..d917309 100755
--- a/modules/modWall.c
+++ b/modules/modWall.c
@@ -322,10 +322,22 @@ void cmd(char *line)
int destroy()
{
- destroySpaceWithObject(spaceWall, destroyWall);
+ if( spaceWall != NULL )
+ {
+ destroySpaceWithObject(spaceWall, destroyWall);
+ }
+
#ifndef PUBLIC_SERVER
- destroySpace(spaceImgWall);
+ if( spaceImgWall != NULL )
+ {
+ destroySpace(spaceImgWall);
+ }
#endif
- destroyList(listWall);
+
+ if( listWall != NULL )
+ {
+ destroyList(listWall);
+ }
+
return 0;
}