From 73b0901ce0463fef23466f8c590c2db0f6ad3eb2 Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Sun, 27 Sep 2015 20:16:06 +0200 Subject: [PATCH] * src/gfilenotify.c (Fgfile_add_watch): Cleanup temporary variable. --- src/gfilenotify.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gfilenotify.c b/src/gfilenotify.c index 8b6b0a0cd2d..69f635d4115 100644 --- a/src/gfilenotify.c +++ b/src/gfilenotify.c @@ -195,6 +195,7 @@ will be reported only in case of the `moved' event. */) /* Enable watch. */ monitor = g_file_monitor (gfile, gflags, NULL, &gerror); + g_object_unref (gfile); if (gerror) { char msg[1024]; -- 2.39.2