1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## 40_fix_crashes_and_mem_corrup_at_exit.dpatch from upstream SVN r3656
4
## All lines beginning with `## DP:' are a description of the patch.
5
## DP: Fixes a lot of crashes and memory corruptions when exiting the application.
8
--- trunk/src/keybindings.c 2009/03/26 20:17:16 3655
9
+++ trunk/src/keybindings.c 2009/03/26 20:31:55 3656
12
#include "treeviews.h"
13
#include "geanywraplabel.h"
17
GPtrArray *keybinding_groups; /* array of GeanyKeyGroup pointers */
20
static void on_document_close(GObject *obj, GeanyDocument *doc)
22
- g_queue_remove_all(mru_docs, doc);
23
- g_idle_add(on_idle_close, NULL);
24
+ if (! main_status.quitting)
26
+ g_queue_remove_all(mru_docs, doc);
27
+ g_idle_add(on_idle_close, NULL);