File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1279,6 +1279,21 @@ set_ref_in_timer(int copyID)
12791279 }
12801280 return abort ;
12811281}
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
12821297# endif
12831298
12841299#if defined(FEAT_SYN_HL ) && defined(FEAT_RELTIME ) && defined(FEAT_FLOAT )
Original file line number Diff line number Diff line change @@ -1224,6 +1224,9 @@ free_all_mem(void)
12241224 channel_free_all ();
12251225 job_free_all ();
12261226# endif
1227+ #ifdef FEAT_TIMERS
1228+ timer_free_all ();
1229+ #endif
12271230
12281231 free_termoptions ();
12291232
Original file line number Diff line number Diff line change @@ -18,11 +18,12 @@ float_T profile_float(proftime_T *tm);
1818void profile_setlimit (long msec , proftime_T * tm );
1919int profile_passed_limit (proftime_T * tm );
2020void profile_zero (proftime_T * tm );
21- timer_T * create_timer (long msec , int repeats );
21+ timer_T * create_timer (long msec , int repeat );
2222long check_due_timer (void );
2323timer_T * find_timer (int id );
2424void stop_timer (timer_T * timer );
2525int set_ref_in_timer (int copyID );
26+ void timer_free_all (void );
2627void profile_divide (proftime_T * tm , int count , proftime_T * tm2 );
2728void profile_add (proftime_T * tm , proftime_T * tm2 );
2829void profile_self (proftime_T * self , proftime_T * total , proftime_T * children );
Original file line number Diff line number Diff line change @@ -763,6 +763,8 @@ static char *(features[]) =
763763
764764static int included_patches [] =
765765{ /* Add new patch number below this line */
766+ /**/
767+ 2130 ,
766768/**/
767769 2129 ,
768770/**/
You can’t perform that action at this time.
0 commit comments