Mercurial > vim
comparison src/buffer.c @ 3238:683fab13904c v7.3.388
updated for version 7.3.388
Problem: Crash on exit when EXITFREE is defined and using tiny features.
Solution: Check for NULL window pointer. (Dominique Pelle)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Fri, 30 Dec 2011 13:39:10 +0100 |
parents | e42252611e74 |
children | 55cebc7e5de0 |
comparison
equal
deleted
inserted
replaced
3237:91e53bcb7946 | 3238:683fab13904c |
---|---|
417 | 417 |
418 buf_freeall(buf, (del_buf ? BFA_DEL : 0) + (wipe_buf ? BFA_WIPE : 0)); | 418 buf_freeall(buf, (del_buf ? BFA_DEL : 0) + (wipe_buf ? BFA_WIPE : 0)); |
419 if ( | 419 if ( |
420 #ifdef FEAT_WINDOWS | 420 #ifdef FEAT_WINDOWS |
421 win_valid(win) && | 421 win_valid(win) && |
422 #else | |
423 win != NULL && | |
422 #endif | 424 #endif |
423 win->w_buffer == buf) | 425 win->w_buffer == buf) |
424 win->w_buffer = NULL; /* make sure we don't use the buffer now */ | 426 win->w_buffer = NULL; /* make sure we don't use the buffer now */ |
425 | 427 |
426 #ifdef FEAT_AUTOCMD | 428 #ifdef FEAT_AUTOCMD |