summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/modPipe.c3
-rw-r--r--src/modules/modTeleport.c4
-rw-r--r--src/modules/modWall.c1
3 files changed, 8 insertions, 0 deletions
diff --git a/src/modules/modPipe.c b/src/modules/modPipe.c
index d07ec37..45e2d3a 100644
--- a/src/modules/modPipe.c
+++ b/src/modules/modPipe.c
@@ -329,7 +329,10 @@ static void recvMsg(char *msg)
static int destroy()
{
space_destroy_with_item(spacePipe, destroyPipe);
+ spacePipe = NULL;
+
list_destroy(listPipe);
+ listPipe = NULL;
return 0;
}
diff --git a/src/modules/modTeleport.c b/src/modules/modTeleport.c
index dec87ac..e6c9deb 100644
--- a/src/modules/modTeleport.c
+++ b/src/modules/modTeleport.c
@@ -348,7 +348,11 @@ static void recvMsg(char *msg)
static int destroy()
{
space_destroy_with_item(spaceTeleport, destroyTeleport);
+ spaceTeleport = NULL;
+
list_destroy(listTeleport);
+ listTeleport = NULL;
+
return 0;
}
diff --git a/src/modules/modWall.c b/src/modules/modWall.c
index 0e4ff02..fecd80b 100644
--- a/src/modules/modWall.c
+++ b/src/modules/modWall.c
@@ -354,6 +354,7 @@ static int destroy()
#endif
list_destroy(listWall);
+ listWall = NULL;
spaceWall = 0;
spaceImgWall = 0;