Patch 8.1.1944
Problem:    Leaking memory when using sound callback.
Solution:   Free the callback queue item.
Files:      src/sound.c


*** ../vim-8.1.1943/src/sound.c 2019-08-15 23:05:46.042376801 +0200
--- src/sound.c 2019-08-30 16:28:15.167753088 +0200
***************
*** 171,176 ****
--- 171,177 ----
        clear_tv(&rettv);
  
        delete_sound_callback(scb->scb_callback);
+       vim_free(scb);
      }
      redraw_after_callback(TRUE);
  }
***************
*** 263,272 ****
--- 264,284 ----
      void
  sound_free(void)
  {
+     soundcb_queue_T *scb;
+ 
      if (context != NULL)
        ca_context_destroy(context);
+ 
      while (first_callback != NULL)
        delete_sound_callback(first_callback);
+ 
+     while (callback_queue != NULL)
+     {
+       scb = callback_queue;
+       callback_queue = scb->scb_next;
+       delete_sound_callback(scb->scb_callback);
+       vim_free(scb);
+     }
  }
  # endif
  
*** ../vim-8.1.1943/src/version.c       2019-08-30 15:46:27.192906157 +0200
--- src/version.c       2019-08-30 16:29:08.135417658 +0200
***************
*** 763,764 ****
--- 763,766 ----
  {   /* Add new patch number below this line */
+ /**/
+     1944,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
138. You develop a liking for cold coffee.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/201908301430.x7UEUoQb014883%40masaka.moolenaar.net.

Raspunde prin e-mail lui