projects
/
adaptation
/
intel_mfld
/
tel-plugin-mfld-blackbay.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a554d4
)
desc-imc-pr3: Check g_source before removing watch
author
Guillaume Zajac
<guillaume.zajac@linux.intel.com>
Mon, 29 Oct 2012 10:16:39 +0000
(11:16 +0100)
committer
Auke Kok
<auke-jan.h.kok@intel.com>
Fri, 8 Feb 2013 20:25:56 +0000
(12:25 -0800)
src/desc_imc_pr3.c
patch
|
blob
|
history
diff --git
a/src/desc_imc_pr3.c
b/src/desc_imc_pr3.c
index
0998e0c
..
7ec076a
100644
(file)
--- a/
src/desc_imc_pr3.c
+++ b/
src/desc_imc_pr3.c
@@
-450,7
+450,11
@@
static TReturn hal_setup_pdp(CoreObject *co, TcoreHalSetupPDPCallBack func,
cdata = tcore_hal_ref_user_data(hal);
if (cdata->channel) {
- g_source_remove(cdata->watch_id);
+ if (cdata->watch_id > 0) {
+ g_source_remove(cdata->watch_id);
+ cdata->watch_id = 0;
+ }
+
g_io_channel_unref(cdata->channel);
g_free(cdata);