commit f3669dbe6a7043964b98cfd20c692246de28156b
parent a6873c4e31db120f5bba92b42985090f651349cd
Author: Kyle Milz <kmilz@ucalgary.ca>
Date: Tue, 25 Sep 2012 13:48:37 -0600
fix segfault when shutting down
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main.c b/src/main.c
@@ -331,7 +331,7 @@ buffer_current_set(Buffer_Data *new_buf)
App_Data *ad = new_buf->app;
Buffer_Data *old_buf = ad->cur_buf;
- if (new_buf == old_buf)
+ if (new_buf == old_buf || ad->exiting)
return;
if (ad->cur_buf) {