diff --git a/docshell/base/nsDocShell.cpp b/docshell/base/nsDocShell.cpp index 4efdb97480f1..09002d5becb9 100644 --- a/docshell/base/nsDocShell.cpp +++ b/docshell/base/nsDocShell.cpp @@ -2991,7 +2991,8 @@ nsDocShell::Destroy() delete mEditorData; mEditorData = 0; - NS_IF_RELEASE(NS_STATIC_CAST(nsIClipboardDragDropHookList *, mTransferableHookData)); + nsIClipboardDragDropHookList *list = NS_STATIC_CAST(nsIClipboardDragDropHookList *, mTransferableHookData); + NS_IF_RELEASE(list); delete mTransferableHookData; mTransferableHookData = nsnull;