[gnome-builder] git: use g_file_monitor_file() and don't leak index_file
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] git: use g_file_monitor_file() and don't leak index_file
- Date: Sun, 26 Apr 2015 00:24:34 +0000 (UTC)
commit 126eedf43c4428883e8e5e32c7359682ecae3f75
Author: Christian Hergert <christian hergert me>
Date: Sat Apr 25 17:04:48 2015 -0700
git: use g_file_monitor_file() and don't leak index_file
Debug code that slipped into previous commit.
libide/git/ide-git-vcs.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/libide/git/ide-git-vcs.c b/libide/git/ide-git-vcs.c
index cb3c704..511d744 100644
--- a/libide/git/ide-git-vcs.c
+++ b/libide/git/ide-git-vcs.c
@@ -436,9 +436,7 @@ ide_git_vcs_load_monitor (IdeGitVcs *self,
location = ggit_repository_get_location (self->repository);
index_file = g_file_get_child (location, "index");
- monitor = g_file_monitor (index_file, flags, NULL, error);
-
- g_object_ref (index_file);
+ monitor = g_file_monitor_file (index_file, flags, NULL, error);
ret = !!monitor;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]