Index: remoting/host/log_to_server.cc |
diff --git a/remoting/host/log_to_server.cc b/remoting/host/log_to_server.cc |
index f75764ade6c773917a0a70641f3c988928ff36ad..47c483688a3c24c269254e66c49bc27029a0ca07 100644 |
--- a/remoting/host/log_to_server.cc |
+++ b/remoting/host/log_to_server.cc |
@@ -97,7 +97,7 @@ void LogToServer::SendPendingEntries() { |
kChromotingXmlNamespace, kLogCommand))); |
while (!pending_entries_.empty()) { |
ServerLogEntry& entry = pending_entries_.front(); |
- stanza->AddElement(entry.ToStanza()); |
+ stanza->AddElement(entry.ToStanza().release()); |
pending_entries_.pop_front(); |
} |
// Send the stanza to the server. |