SF.net SVN: geany:[5908] trunk

colombanw at users.sourceforge.net colombanw at xxxxx
Fri Sep 2 21:45:20 UTC 2011


Revision: 5908
          http://geany.svn.sourceforge.net/geany/?rev=5908&view=rev
Author:   colombanw
Date:     2011-09-02 21:45:20 +0000 (Fri, 02 Sep 2011)
Log Message:
-----------
Plug a few memory leaks

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

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2011-09-02 21:45:02 UTC (rev 5907)
+++ trunk/ChangeLog	2011-09-02 21:45:20 UTC (rev 5908)
@@ -2,6 +2,8 @@
 
  * src/ui_utils.c:
    Fix check for enabling MIME type based icons.
+ * src/encodings.c, src/filetypes.c:
+   Plug a few memory leaks.
 
 
 2011-08-25  Colomban Wendling  <colomban(at)geany(dot)org>

Modified: trunk/src/encodings.c
===================================================================
--- trunk/src/encodings.c	2011-09-02 21:45:02 UTC (rev 5907)
+++ trunk/src/encodings.c	2011-09-02 21:45:20 UTC (rev 5908)
@@ -969,6 +969,8 @@
 	*size = buffer.len;
 	if (used_encoding)
 		*used_encoding = buffer.enc;
+	else
+		g_free(buffer.enc);
 	if (has_bom)
 		*has_bom = buffer.bom;
 	if (partial)

Modified: trunk/src/filetypes.c
===================================================================
--- trunk/src/filetypes.c	2011-09-02 21:45:02 UTC (rev 5907)
+++ trunk/src/filetypes.c	2011-09-02 21:45:20 UTC (rev 5908)
@@ -1646,6 +1646,7 @@
 		else
 			geany_debug("Filetype '%s' not found for group '%s'!", *name, group_name);
 	}
+	g_strfreev(names);
 }
 
 

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