Commit 126eedf4 authored by Christian Hergert's avatar Christian Hergert
Browse files

git: use g_file_monitor_file() and don't leak index_file

Debug code that slipped into previous commit.
parent a09c633c
......@@ -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;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment