SF.net SVN: geany:[5613] trunk/src/filetypes.c

colombanw at users.sourceforge.net colombanw at xxxxx
Mon Mar 21 21:38:21 UTC 2011


Revision: 5613
          http://geany.svn.sourceforge.net/geany/?rev=5613&view=rev
Author:   colombanw
Date:     2011-03-21 21:38:20 +0000 (Mon, 21 Mar 2011)

Log Message:
-----------
Fix invalid free (oops)

Modified Paths:
--------------
    trunk/src/filetypes.c

Modified: trunk/src/filetypes.c
===================================================================
--- trunk/src/filetypes.c	2011-03-21 19:08:44 UTC (rev 5612)
+++ trunk/src/filetypes.c	2011-03-21 21:38:20 UTC (rev 5613)
@@ -1120,7 +1120,7 @@
 	else if (! NZV(filetypes[ft_id]->comment_close))
 	{
 		setptr(filetypes[ft_id]->comment_single, filetypes[ft_id]->comment_open);
-		setptr(filetypes[ft_id]->comment_open, NULL);
+		filetypes[ft_id]->comment_open = NULL;
 	}
 
 	tmp = g_key_file_get_boolean(configh, "settings", "comment_use_indent", &error);


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Commits mailing list