summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2011-05-16 18:04:44 +0300
committerMateu Batle <mateu.batle@collabora.co.uk>2011-05-17 19:08:29 -0500
commitbf64c94e1f36d49999fcb769e1f23b6fc4a87147 (patch)
tree53023712b38d626fece7232b5a47d51c0c98b963
parent5b81cb89f364c1d62e8ef8760009e6a1190feb09 (diff)
Fix trivial use-after-free crash
-rw-r--r--TelepathyQt4Yell/Farstream/channel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/TelepathyQt4Yell/Farstream/channel.cpp b/TelepathyQt4Yell/Farstream/channel.cpp
index e78dd36..27a3f15 100644
--- a/TelepathyQt4Yell/Farstream/channel.cpp
+++ b/TelepathyQt4Yell/Farstream/channel.cpp
@@ -127,8 +127,8 @@ void PendingTfChannel::Private::onTfChannelNewFinish(GObject *sourceObject,
G_ASYNC_INITABLE(sourceObject), res, &error));
if (error) {
qDebug() << "PendingTfChannel::Private::onTfChannelNewFinish: error " << error->message;
- g_clear_error(&error);
self->setFinishedWithError(TP_QT4_ERROR_NOT_AVAILABLE, QLatin1String(error->message));
+ g_clear_error(&error);
return;
}