summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2017-10-18 16:10:48 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2017-10-31 12:10:16 -0400
commit32b25613067ffd3729bee5230372c983bc54e8ec (patch)
tree977bd8f17df3a1030d112897734d8556e002cb65
parent2afb298b755930fe93717fde380cb477d314ee9f (diff)
downloadenlightenment-32b25613067ffd3729bee5230372c983bc54e8ec.tar.gz
null wl clipboard+selection source pointers when destroying clipboard source
fix T6242
-rw-r--r--src/bin/e_comp_wl_data.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bin/e_comp_wl_data.c b/src/bin/e_comp_wl_data.c
index 607c649db7..a738546830 100644
--- a/src/bin/e_comp_wl_data.c
+++ b/src/bin/e_comp_wl_data.c
@@ -1276,6 +1276,10 @@ e_comp_wl_clipboard_source_unref(E_Comp_Wl_Clipboard_Source *source)
}
_mime_types_free(&source->data_source);
+ if (source == e_comp_wl->clipboard.source)
+ e_comp_wl->clipboard.source = NULL;
+ if (&source->data_source == e_comp_wl->selection.data_source)
+ e_comp_wl->selection.data_source = NULL;
wl_signal_emit(&source->data_source.destroy_signal, &source->data_source);
wl_array_release(&source->contents);