Skip to content

Commit 93804d8

Browse files
committed
Add callback release code
1 parent 6f6b8c8 commit 93804d8

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

flutter/shell/platform/tizen/tizen_clipboard.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,11 @@ bool TizenClipboard::GetData(ClipboardCallback on_data_callback) {
127127

128128
if (!selection_offer_) {
129129
FT_LOG(Error) << "ecore_wl2_dnd_selection_get() failed.";
130+
131+
if (on_data_callback_) {
132+
on_data_callback_(std::nullopt);
133+
on_data_callback_ = nullptr;
134+
}
130135
return false;
131136
}
132137

0 commit comments

Comments
 (0)