SF.net SVN: geany:[5367] trunk
ntrel at users.sourceforge.net
ntrel at xxxxx
Thu Nov 4 18:07:45 UTC 2010
Revision: 5367
http://geany.svn.sourceforge.net/geany/?rev=5367&view=rev
Author: ntrel
Date: 2010-11-04 18:07:44 +0000 (Thu, 04 Nov 2010)
Log Message:
-----------
Fix resource leak when saving files with GIO (patch by Colomban
Wendling, thanks).
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/document.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2010-11-04 18:06:09 UTC (rev 5366)
+++ trunk/ChangeLog 2010-11-04 18:07:44 UTC (rev 5367)
@@ -9,6 +9,9 @@
src/ui_utils.c:
Add filetypes_get_display_name() to get translations for filetype
None.
+ * src/document.c:
+ Fix resource leak when saving files with GIO (patch by Colomban
+ Wendling, thanks).
2010-11-02 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
Modified: trunk/src/document.c
===================================================================
--- trunk/src/document.c 2010-11-04 18:06:09 UTC (rev 5366)
+++ trunk/src/document.c 2010-11-04 18:07:44 UTC (rev 5367)
@@ -1719,6 +1719,7 @@
fp = g_file_new_for_path(locale_filename);
g_file_replace_contents(fp, data, len, NULL, FALSE,
G_FILE_CREATE_NONE, NULL, NULL, &error);
+ g_object_unref(fp);
#else
gint err = 0;
FILE *fp;
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