Fix double free 40/178640/2
authorhyunho <hhstark.kang@samsung.com>
Fri, 11 May 2018 05:22:20 +0000 (14:22 +0900)
committerHyunho Kang <hhstark.kang@samsung.com>
Fri, 11 May 2018 07:54:49 +0000 (07:54 +0000)
Change-Id: I738b97aa89e1b480adc45776edb63ff427305818
Signed-off-by: hyunho <hhstark.kang@samsung.com>
watchface-complication/complication.cc
watchface-editor/editables-editor.cc

index dee89f0..d1fc70f 100644 (file)
@@ -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) {
index 64b4b6a..8476b27 100644 (file)
@@ -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<Bundle>(new Bundle(std::string(raw_str))));
   }
-
-  if (raw)
-    free(raw);
 }
 
 void EditablesEditor::OnSetupReply(int editable_id, std::unique_ptr<Bundle> context) {