Branch: refs/heads/master Author: Colomban Wendling ban@herbesfolles.org Committer: Colomban Wendling ban@herbesfolles.org Date: Mon, 22 Feb 2016 13:46:29 UTC Commit: a335a8c925e273088f3d3e327bd22c99246a264a https://github.com/geany/geany-plugins/commit/a335a8c925e273088f3d3e327bd22c...
Log Message: ----------- geniuspaste: Lower GLib dependency to 2.28
This is the same version as Geany since v1.25.
Modified Paths: -------------- geniuspaste/src/geniuspaste.c
Modified: geniuspaste/src/geniuspaste.c 8 lines changed, 4 insertions(+), 4 deletions(-) =================================================================== @@ -97,7 +97,7 @@ PLUGIN_SET_TRANSLATABLE_INFO(LOCALEDIR, GETTEXT_PACKAGE, PLUGIN_NAME,
static void pastebin_free(Pastebin *pastebin) { - g_key_file_unref(pastebin->config); + g_key_file_free(pastebin->config); g_free(pastebin->name); g_free(pastebin); } @@ -153,10 +153,10 @@ static Pastebin *pastebin_new(const gchar *path,
pastebin->name = g_key_file_get_string(kf, PASTEBIN_GROUP_PASTEBIN, PASTEBIN_GROUP_PASTEBIN_KEY_NAME, NULL); - pastebin->config = g_key_file_ref(kf); + pastebin->config = kf; } - - g_key_file_unref(kf); + else + g_key_file_free(kf);
return pastebin; }
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).