SF.net SVN: geany-plugins:[836] trunk/geanylatex/src/bibtex.c

frlan at users.sourceforge.net frlan at xxxxx
Sat Jul 18 00:11:47 UTC 2009


Revision: 836
          http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=836&view=rev
Author:   frlan
Date:     2009-07-18 00:11:47 +0000 (Sat, 18 Jul 2009)

Log Message:
-----------
GeanyLaTeX: Fix a minor memory leak

Modified Paths:
--------------
    trunk/geanylatex/src/bibtex.c

Modified: trunk/geanylatex/src/bibtex.c
===================================================================
--- trunk/geanylatex/src/bibtex.c	2009-07-17 19:52:49 UTC (rev 835)
+++ trunk/geanylatex/src/bibtex.c	2009-07-18 00:11:47 UTC (rev 836)
@@ -133,10 +133,10 @@
 void glatex_bibtex_write_entry(GPtrArray *entry, gint doctype)
 {
 	gint i;
-	gchar *output = g_strdup("@");
+	gchar *output = NULL;
 
 	/* Adding the doctype to entry */
-	output = g_strconcat(output, glatex_label_types[doctype], "{ \n",NULL);
+	output = g_strconcat("@", glatex_label_types[doctype], "{ \n",NULL);
 
 	/* Adding the keywords and values to entry */
 	for (i = 0; i < GLATEX_BIBTEX_N_ENTRIES; i++)


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



More information about the Plugins-Commits mailing list