Problem: Leaking memory when using sound callback.
Solution: src/sound.c
clear_tv(&rettv);
delete_sound_callback(scb->scb_callback);
+ vim_free(scb);
}
redraw_after_callback(TRUE);
}
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
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1944,
/**/
1943,
/**/