comparison src/ex_cmds2.c @ 9709:cce76af1cc6a v7.4.2130

commit https://github.com/vim/vim/commit/623e263ffb998acacd6fd0de18c44e03af2a47d1 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jul 30 22:47:56 2016 +0200 patch 7.4.2130 Problem: Pending timers cause false memory leak reports. Solution: Free all timers on exit.
author Christian Brabandt <cb@256bit.org>
date Sat, 30 Jul 2016 23:00:05 +0200
parents 8c2553beff0f
children 4360b2b46125
comparison
equal deleted inserted replaced
9708:09d6c236da35 9709:cce76af1cc6a
1277 } 1277 }
1278 abort = abort || set_ref_in_item(&tv, copyID, NULL, NULL); 1278 abort = abort || set_ref_in_item(&tv, copyID, NULL, NULL);
1279 } 1279 }
1280 return abort; 1280 return abort;
1281 } 1281 }
1282
1283 # if defined(EXITFREE) || defined(PROTO)
1284 void
1285 timer_free_all()
1286 {
1287 timer_T *timer;
1288
1289 while (first_timer != NULL)
1290 {
1291 timer = first_timer;
1292 remove_timer(timer);
1293 free_timer(timer);
1294 }
1295 }
1296 # endif
1282 # endif 1297 # endif
1283 1298
1284 #if defined(FEAT_SYN_HL) && defined(FEAT_RELTIME) && defined(FEAT_FLOAT) 1299 #if defined(FEAT_SYN_HL) && defined(FEAT_RELTIME) && defined(FEAT_FLOAT)
1285 # if defined(HAVE_MATH_H) 1300 # if defined(HAVE_MATH_H)
1286 # include <math.h> 1301 # include <math.h>