From 6b5672fab1781d9ef7208562c01a2ec0fe9ab147 Mon Sep 17 00:00:00 2001 From: hyunho Date: Fri, 11 May 2018 14:22:20 +0900 Subject: [PATCH] Fix double free Change-Id: I738b97aa89e1b480adc45776edb63ff427305818 Signed-off-by: hyunho --- watchface-complication/complication.cc | 3 --- watchface-editor/editables-editor.cc | 3 --- 2 files changed, 6 deletions(-) diff --git a/watchface-complication/complication.cc b/watchface-complication/complication.cc index dee89f0..d1fc70f 100644 --- a/watchface-complication/complication.cc +++ b/watchface-complication/complication.cc @@ -107,9 +107,6 @@ void Complication::Impl::OnSignal(GDBusConnection* connection, ComplicationConnector::CompNotifyDataUpdate)) == 0) { parent_->OnNotifyDataUpdate(); } - - if (raw) - free(raw); } int Complication::Impl::FindCandidateDataIdx(std::string provider_id, int type) { diff --git a/watchface-editor/editables-editor.cc b/watchface-editor/editables-editor.cc index 64b4b6a..8476b27 100644 --- a/watchface-editor/editables-editor.cc +++ b/watchface-editor/editables-editor.cc @@ -93,9 +93,6 @@ void EditablesEditor::Impl::OnSignal(GDBusConnection* connection, g_variant_get(parameters, "(i&s)", &edit_id, &raw_str); parent_->OnSetupReply(edit_id, std::unique_ptr(new Bundle(std::string(raw_str)))); } - - if (raw) - free(raw); } void EditablesEditor::OnSetupReply(int editable_id, std::unique_ptr context) { -- 2.7.4