[giggle] Bug #570506 - Reset config hash-table on repository switch instead of unref
- From: Javier Jardón <jjardon src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [giggle] Bug #570506 - Reset config hash-table on repository switch instead of unref
- Date: Sun, 24 Jan 2010 03:38:39 +0000 (UTC)
commit 6711bd6733d9391d02224f52ead87a291087e32d
Author: Hans Breuer <hans breuer org>
Date: Fri Apr 17 19:37:16 2009 +0200
Bug #570506 - Reset config hash-table on repository switch instead of unref
libgiggle-git/giggle-git-config.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/libgiggle-git/giggle-git-config.c b/libgiggle-git/giggle-git-config.c
index edd14d7..3578ef8 100644
--- a/libgiggle-git/giggle-git-config.c
+++ b/libgiggle-git/giggle-git-config.c
@@ -526,7 +526,8 @@ giggle_git_config_update (GiggleGitConfig *config,
}
if (priv->config) {
- g_hash_table_unref (priv->config);
+ /* dont destroy, just empty it */
+ g_hash_table_remove_all (priv->config);
}
task = g_new0 (GiggleGitConfigTask, 1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]