Revision: 1215 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1215&view=re... Author: frlan Date: 2010-03-27 14:34:35 +0000 (Sat, 27 Mar 2010)
Log Message: ----------- GeanyLaTeX: Try to ensure we don't try to free a non valid pointer
Modified Paths: -------------- trunk/geanylatex/src/geanylatex.c
Modified: trunk/geanylatex/src/geanylatex.c =================================================================== --- trunk/geanylatex/src/geanylatex.c 2010-03-27 14:34:12 UTC (rev 1214) +++ trunk/geanylatex/src/geanylatex.c 2010-03-27 14:34:35 UTC (rev 1215) @@ -1580,7 +1580,10 @@ utils_string_replace_all(code, "{AUTHOR}", "% \author{}\n"); } utils_string_replace_all(code, "{AUTHOR}", author_string); - g_free(author); + if (author != NULL) + { + g_free(author); + } g_free(author_string); }
@@ -1595,6 +1598,10 @@ else { utils_string_replace_all(code, "{DATE}", "% \date{}\n"); + if (date != NULL) + { + g_free(date); + } }
if (title != NULL)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
plugins-commits@lists.geany.org