Fixed memory leak in ":ownsyntax".
diff --git a/src/window.c b/src/window.c
index d6aae7c..e878d9f 100644
--- a/src/window.c
+++ b/src/window.c
@@ -4410,7 +4410,10 @@
 #ifdef FEAT_SYN_HL
     /* free independent synblock */
     if (wp->w_s != &wp->w_buffer->b_s)
+    {
+	syntax_clear(wp->w_s);
 	vim_free(wp->w_s);
+    }
 #endif
 
 #ifdef FEAT_AUTOCMD