[geany/geany-plugins] 55d5f0: Geanysendmail: fix mismatching allocation/deallocation

Pavel Roschin git-noreply at xxxxx
Thu Nov 28 21:33:26 UTC 2013


Branch:      refs/heads/master
Author:      Pavel Roschin <roshin at scriptumplus.ru>
Committer:   Frank Lanitz <frank at frank.uvena.de>
Date:        Thu, 28 Nov 2013 21:33:26 UTC
Commit:      55d5f08a835a1b4a730898399c5348aa2296dffb
             https://github.com/geany/geany-plugins/commit/55d5f08a835a1b4a730898399c5348aa2296dffb

Log Message:
-----------
Geanysendmail: fix mismatching allocation/deallocation


Modified Paths:
--------------
    geanysendmail/src/geanysendmail.c

Modified: geanysendmail/src/geanysendmail.c
4 files changed, 2 insertions(+), 2 deletions(-)
===================================================================
@@ -111,7 +111,7 @@ enum
  				}
  				else
  				{
-					g_free(cmd_str);
+					g_string_free(cmd_str, TRUE);
 					g_free(locale_filename);
 					return;
 				}
@@ -173,7 +173,7 @@ enum
 		ui_set_statusbar(FALSE, _("File has to be saved before sending."));
 	}
 
-	g_free(config);
+	g_key_file_free(config);
 }
 
 static void key_send_as_attachment(G_GNUC_UNUSED guint key_id)



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Plugins-Commits mailing list