Fixing reload. Thanks to Mats Karlsson!
authorOlle Johansson <oej@edvina.net>
Thu, 10 May 2007 15:19:57 +0000 (15:19 +0000)
committerOlle Johansson <oej@edvina.net>
Thu, 10 May 2007 15:19:57 +0000 (15:19 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@63730 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_minivm.c

index 682c251..cbb7a75 100644 (file)
@@ -2283,6 +2283,9 @@ static void free_zone(struct minivm_zone *z)
 static void timezone_destroy_list(void)
 {
        struct minivm_zone *this;
+
+       if (AST_LIST_EMPTY(&minivm_zones))
+               return;
        AST_LIST_LOCK(&minivm_zones);
        while ((this = AST_LIST_REMOVE_HEAD(&minivm_zones, list))) 
                free(this);