Revision: 680 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=680&view=rev Author: frlan Date: 2009-05-29 20:09:39 +0000 (Fri, 29 May 2009)
Log Message: ----------- GeanyLaTeX: Fix some minor memory leaks
Modified Paths: -------------- trunk/geanylatex/src/geanylatex.c
Modified: trunk/geanylatex/src/geanylatex.c =================================================================== --- trunk/geanylatex/src/geanylatex.c 2009-05-29 20:09:15 UTC (rev 679) +++ trunk/geanylatex/src/geanylatex.c 2009-05-29 20:09:39 UTC (rev 680) @@ -923,17 +923,20 @@
if (papersize != NULL) { - classoptions = g_strconcat(papersize, NULL); + classoptions = g_strdup(papersize); + g_free(papersize); } if (classoptions != NULL && draft_active == TRUE) { draft = g_utf8_casefold("draft", -1); classoptions = g_strconcat(classoptions,",", draft, NULL); + g_free(draft); } else if (classoptions == NULL && draft_active == TRUE) { draft = g_utf8_casefold("draft", -1); classoptions = g_strconcat(draft, NULL); + g_free(draft); } if (classoptions != NULL && NZV(fontsize)) { @@ -941,8 +944,9 @@ } else if (classoptions == NULL && NZV(fontsize)) { - classoptions = g_strconcat(fontsize, NULL); + classoptions = g_strdup(fontsize); } + g_free(fontsize);
switch (documentclass_int)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.