]> code.delx.au - gnu-emacs/commitdiff
* src/gfilenotify.c (Fgfile_add_watch): Cleanup temporary variable.
authorMichael Albinus <michael.albinus@gmx.de>
Sun, 27 Sep 2015 18:16:06 +0000 (20:16 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Sun, 27 Sep 2015 18:16:06 +0000 (20:16 +0200)
src/gfilenotify.c

index 8b6b0a0cd2dc41bff6f26fe4296928d5873dc487..69f635d4115ed9d702378ab9d185dd9479991715 100644 (file)
@@ -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];