Browse Source

- removed debugging return from a destroy function, patch provided by Jan
Andres
closes SER-379

Jan Janak 17 years ago
parent
commit
ccf689e591
1 changed files with 4 additions and 3 deletions
  1. 4 3
      lib/presence/notifier_domain.c

+ 4 - 3
lib/presence/notifier_domain.c

@@ -268,7 +268,7 @@ notifier_domain_t *create_notifier_domain(reference_counter_group_t *g, const st
 void destroy_notifier_domain(notifier_domain_t *domain)
 {
 	notifier_package_t *p, *n;
-	qsa_content_type_t *c, *nc;
+	qsa_content_type_t *c, *tmp;
 
 	/* this function is always called only if no only one reference
 	 * to domain exists (see domain maintainer), this should mean, that 
@@ -288,8 +288,9 @@ void destroy_notifier_domain(notifier_domain_t *domain)
 	
 	c = domain->first_content_type;
 	while (c) {
-		nc = c->next;
-		destroy_content_type(c);
+		tmp = c;
+		c = c->next;
+		destroy_content_type(tmp);
 	}
 	domain->first_content_type = NULL;
 	domain->last_content_type = NULL;