Branch: refs/heads/master Author: Pavel Roschin roshin@scriptumplus.ru Committer: Pavel Roschin roshin@scriptumplus.ru Date: Fri, 02 May 2014 18:36:25 UTC Commit: deb48cbf5784a1ebf153a749fd9c8a29dca7b520 https://github.com/geany/geany-plugins/commit/deb48cbf5784a1ebf153a749fd9c8a...
Log Message: ----------- Auto-close: Steal plugin data to free it manually
Modified Paths: -------------- autoclose/src/autoclose.c
Modified: autoclose/src/autoclose.c 3 lines changed, 2 insertions(+), 1 deletions(-) =================================================================== @@ -835,7 +835,7 @@ autoclose_handlers_cleanup(void) AutocloseUserData *autoclose_data;
sci = documents[i]->editor->sci; - data = g_object_get_data(G_OBJECT(sci), "autoclose-userdata"); + data = g_object_steal_data(G_OBJECT(sci), "autoclose-userdata"); if(!data) continue; autoclose_data = (AutocloseUserData*)data; @@ -844,6 +844,7 @@ autoclose_handlers_cleanup(void) gulong handler = autoclose_data->notify_handler[j]; g_signal_handler_disconnect(sci, handler); } + g_free(data); } }
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
plugins-commits@lists.geany.org