Browse code

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

Jan Janak authored on 23/06/2008 13:08:10
Showing 1 changed files
... ...
@@ -267,7 +267,7 @@ notifier_domain_t *create_notifier_domain(const str_t *name)
267 267
 void destroy_notifier_domain(notifier_domain_t *domain)
268 268
 {
269 269
 	notifier_package_t *p, *n;
270
-	qsa_content_type_t *c, *nc;
270
+	qsa_content_type_t *c, *tmp;
271 271
 
272 272
 	/* this function is always called only if no only one reference
273 273
 	 * to domain exists (see domain maintainer), this should mean, that 
... ...
@@ -287,8 +287,9 @@ void destroy_notifier_domain(notifier_domain_t *domain)
287 287
 	
288 288
 	c = domain->first_content_type;
289 289
 	while (c) {
290
-		nc = c->next;
291
-		destroy_content_type(c);
290
+		tmp = c;
291
+		c = c->next;
292
+		destroy_content_type(tmp);
292 293
 	}
293 294
 	domain->first_content_type = NULL;
294 295
 	domain->last_content_type = NULL;