[tracker] firefox, thunderbird: Save AsyncReadyCallback to avoid GC crashes
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] firefox, thunderbird: Save AsyncReadyCallback to avoid GC crashes
- Date: Sat, 25 Feb 2012 06:07:39 +0000 (UTC)
commit 0c2c0d6803e6747b22b46d0f54fed7abcba0cd78
Author: Martyn Russell <martyn lanedo com>
Date: Wed Feb 22 18:40:36 2012 +0000
firefox,thunderbird: Save AsyncReadyCallback to avoid GC crashes
Fixes GB#670251.
src/plugins/firefox/chrome/content/plugin.js | 5 ++---
src/plugins/thunderbird/chrome/content/plugin.js | 5 ++---
2 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/src/plugins/firefox/chrome/content/plugin.js b/src/plugins/firefox/chrome/content/plugin.js
index 9601bf3..62161f6 100644
--- a/src/plugins/firefox/chrome/content/plugin.js
+++ b/src/plugins/firefox/chrome/content/plugin.js
@@ -45,9 +45,8 @@ org.bustany.TrackerFox.Plugin={
plugin.onTrackerReady(source_object, result, user_data);
}
- tracker.connection_open_async(null,
- tracker.AsyncReadyCallback.ptr(callback_closure),
- null);
+ tracker.readyCallback = tracker.AsyncReadyCallback.ptr(callback_closure)
+ tracker.connection_open_async(null, tracker.readyCallback, null);
return true;
},
diff --git a/src/plugins/thunderbird/chrome/content/plugin.js b/src/plugins/thunderbird/chrome/content/plugin.js
index d582ed4..64f51f9 100644
--- a/src/plugins/thunderbird/chrome/content/plugin.js
+++ b/src/plugins/thunderbird/chrome/content/plugin.js
@@ -50,9 +50,8 @@ org.bustany.TrackerBird.Plugin = {
plugin.onTrackerReady(source_object, result, user_data);
}
- tracker.connection_open_async(null,
- tracker.AsyncReadyCallback.ptr(callback_closure),
- null);
+ tracker.readyCallback = tracker.AsyncReadyCallback.ptr(callback_closure)
+ tracker.connection_open_async(null, tracker.readyCallback, null);
return true;
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]