diff options
author | portix <none@none> | 2012-12-03 02:32:14 +0100 |
---|---|---|
committer | portix <none@none> | 2012-12-03 02:32:14 +0100 |
commit | 57d3849d42e187f8d3e848f71c261e4ac33a1af2 (patch) | |
tree | 81bb8da1600b055c93b7ee282831ee6f3671d3ca /src/scripts.c | |
parent | 85841284b590f0ba33bfab7c1653eeb6feccb05c (diff) | |
download | dwb-57d3849d42e187f8d3e848f71c261e4ac33a1af2.zip |
Free object signals before releasing the global script context
Diffstat (limited to 'src/scripts.c')
-rw-r--r-- | src/scripts.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/scripts.c b/src/scripts.c index cd493a75..a1a3224a 100644 --- a/src/scripts.c +++ b/src/scripts.c @@ -2770,13 +2770,6 @@ scripts_end() { if (m_global_context != NULL) { - JSValueUnprotect(m_global_context, m_array_contructor); - JSClassRelease(m_default_class); - JSClassRelease(m_webview_class); - JSClassRelease(m_frame_class); - JSClassRelease(m_download_class); - JSClassRelease(m_message_class); - JSGlobalContextRelease(m_global_context); if (m_signals != NULL) { for (GSList *l = m_signals; l; l=l->next) @@ -2785,6 +2778,13 @@ scripts_end() } g_slist_free(m_signals); } + JSValueUnprotect(m_global_context, m_array_contructor); + JSClassRelease(m_default_class); + JSClassRelease(m_webview_class); + JSClassRelease(m_frame_class); + JSClassRelease(m_download_class); + JSClassRelease(m_message_class); + JSGlobalContextRelease(m_global_context); m_global_context = NULL; } }/*}}}*//*}}}*/ |