forked from openlp/openlp
Force the garbage collector to run.
This commit is contained in:
parent
72d842a2aa
commit
eb6704cf01
@ -27,6 +27,7 @@
|
||||
###############################################################################
|
||||
|
||||
import logging
|
||||
import gc
|
||||
|
||||
from PyQt4 import QtGui, QtCore, QtWebKit
|
||||
|
||||
@ -411,6 +412,7 @@ class Renderer(object):
|
||||
# QWebView in order for the display to work properly, but we do. See
|
||||
# bug #1041366 for an example of what happens if we take this out.
|
||||
self.web = None
|
||||
gc.collect()
|
||||
self.web = QtWebKit.QWebView()
|
||||
self.web.setVisible(False)
|
||||
self.web.resize(self.page_width, self.page_height)
|
||||
|
Loading…
Reference in New Issue
Block a user