/soc/2012/michael/android: f88a358efc52: Fix against the bug whe...
Michael Zangl
michael at soc.pidgin.im
Wed Aug 15 06:14:15 EDT 2012
Changeset: f88a358efc52bff65793b9060476795413662502
Author: Michael Zangl <michael at soc.pidgin.im>
Date: 2012-08-11 11:33 +0200
Branch: soc.2012.android
URL: http://hg.pidgin.im/soc/2012/michael/android/rev/f88a358efc52
Description:
Fix against the bug where a dns query data seems to be freed before it is makred as destroyed.
diffstat:
android/workspace/im.pidgin.libpurple/src/im/pidgin/libpurple/core/dns/DnsQueryData.java | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (24 lines):
diff --git a/android/workspace/im.pidgin.libpurple/src/im/pidgin/libpurple/core/dns/DnsQueryData.java b/android/workspace/im.pidgin.libpurple/src/im/pidgin/libpurple/core/dns/DnsQueryData.java
--- a/android/workspace/im.pidgin.libpurple/src/im/pidgin/libpurple/core/dns/DnsQueryData.java
+++ b/android/workspace/im.pidgin.libpurple/src/im/pidgin/libpurple/core/dns/DnsQueryData.java
@@ -9,16 +9,19 @@ import im.pidgin.libpurple.peering.Peere
*/
public class DnsQueryData extends Peered {
+ private final String host;
+
public DnsQueryData(long nativePointer) {
super(nativePointer);
register_native();
+ host = getHost_native();
}
private native void register_native();
public synchronized String getHost() {
ensureNotDestroyed();
- return getHost_native();
+ return host;
}
private native String getHost_native();
More information about the Commits
mailing list