From: dvlierop2 Date: Wed, 1 Apr 2009 19:47:30 +0000 (+0000) Subject: Delete the delayed snap event, killing any pending timers, when the event-context... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=31628739c2285033522ac1fa445fbfadafaef664;p=inkscape.git Delete the delayed snap event, killing any pending timers, when the event-context is being disposed off --- diff --git a/src/event-context.cpp b/src/event-context.cpp index e22849798..bf98d98d3 100644 --- a/src/event-context.cpp +++ b/src/event-context.cpp @@ -173,6 +173,10 @@ sp_event_context_dispose(GObject *object) delete ec->pref_observer; } + if (ec->_delayed_snap_event) { + delete ec->_delayed_snap_event; + } + G_OBJECT_CLASS(parent_class)->dispose(object); }