[Xfce4-commits] <thunar-vcs-plugin:master> Small memory footprint fix in file selection dialog.
Stefan Sperling
noreply at xfce.org
Thu Sep 6 23:48:08 CEST 2012
Updating branch refs/heads/master
to c3208b715eb062cabccd21d58701ff9dc5a84e67 (commit)
from 14b5ec3a0fcee3e9a791820a87b75009cbe9aa1c (commit)
commit c3208b715eb062cabccd21d58701ff9dc5a84e67
Author: Stefan Sperling <stsp at stsp.name>
Date: Thu Sep 6 19:44:42 2012 +0200
Small memory footprint fix in file selection dialog.
While looping over files to get their status, clear the
subpool during each iteration to make memory footprint
independent of the number of iterations.
tvp-svn-helper/tsh-file-selection-dialog.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/tvp-svn-helper/tsh-file-selection-dialog.c b/tvp-svn-helper/tsh-file-selection-dialog.c
index 1197ec7..ca3cb1b 100644
--- a/tvp-svn-helper/tsh-file-selection-dialog.c
+++ b/tvp-svn-helper/tsh-file-selection-dialog.c
@@ -193,6 +193,7 @@ tsh_file_selection_dialog_new (const gchar *title, GtkWindow *parent, GtkDialogF
{
while (*files)
{
+ svn_pool_clear(subpool);
#if CHECK_SVN_VERSION(1,5)
if((err = svn_client_status3(NULL, *files, &revision, tsh_file_selection_status_func2, dialog, (selection_flags&TSH_FILE_SELECTION_FLAG_RECURSIVE)?svn_depth_infinity:svn_depth_immediates, selection_flags&TSH_FILE_SELECTION_FLAG_UNCHANGED, FALSE, selection_flags&TSH_FILE_SELECTION_FLAG_IGNORED, TRUE, NULL, ctx, subpool)))
#elif CHECK_SVN_VERSION(1,6)
More information about the Xfce4-commits
mailing list