[gnome-documents] embed: invalidate the cancellable reference once we load the doc



commit 9246b3d5e7401a06dc37bd0c57272461234fa8f9
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Fri Mar 23 16:31:54 2012 -0400

    embed: invalidate the cancellable reference once we load the doc
    
    When the loading process is finished, we have to invalidate our
    reference to the cancellable object, otherwise we end up trying to
    cancel it later when we switch back to the overview, and at that point
    the object might be invalid already.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=672723

 src/embed.js |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/embed.js b/src/embed.js
index 51e5d85..a3f5377 100644
--- a/src/embed.js
+++ b/src/embed.js
@@ -299,6 +299,8 @@ ViewEmbed.prototype  = {
     },
 
     _onDocumentLoaded: function(doc, evDoc, error) {
+        this._loaderCancellable = null;
+
         if (!evDoc) {
             Global.errorHandler.addLoadError(doc, error);
             return;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]