Hi,

I've a few days ago that the tag generation crashes with Geany SVN. I just
searched a little and figured out it is because documents_array isn't
properly initialized when generating tags. Then as usual, there's a little
patch!

Note that I added calls to finalize the initialized modules (filetypes and
document), not sure why there wasn't there already -- even though the
system would do that cleanup itself on exit but still.

Regards,
Colomban
Index: src/main.c
===================================================================
--- src/main.c	(revision 4881)
+++ src/main.c	(working copy)
@@ -549,9 +549,12 @@
 	{
 		gboolean ret;
 
+		document_init_doclist ();
 		filetypes_init_types();
 		filetypes_read_extensions();	/* needed for *.lang.tags filetype matching */
 		ret = symbols_generate_global_tags(*argc, *argv, ! no_preprocessing);
+		filetypes_free_types ();
+		document_finalize ();
 		exit(ret);
 	}
 
_______________________________________________
Geany-devel mailing list
Geany-devel@uvena.de
http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel

Reply via email to