Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
k-sdk
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陈伟灿
k-sdk
Commits
9d50a63b
Commit
9d50a63b
authored
Sep 28, 2021
by
尹佳钦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
红外场景触发链表删除时,调整free位置
parent
51320a71
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
midware/midware/scene/kk_scene_handle.c
midware/midware/scene/kk_scene_handle.c
+1
-2
No files found.
midware/midware/scene/kk_scene_handle.c
View file @
9d50a63b
...
@@ -609,12 +609,11 @@ int bodySensor_delete(int scene_id)
...
@@ -609,12 +609,11 @@ int bodySensor_delete(int scene_id)
if
(
ptr
->
scene_id
==
scene_id
){
if
(
ptr
->
scene_id
==
scene_id
){
if
(
pre
!=
NULL
){
if
(
pre
!=
NULL
){
free
(
ptr
);
pre
->
next
=
ptr
->
next
;
pre
->
next
=
ptr
->
next
;
}
else
{
}
else
{
free
(
ptr
);
pBodySensor
=
NULL
;
pBodySensor
=
NULL
;
}
}
free
(
ptr
);
return
1
;
return
1
;
}
}
pre
=
ptr
;
pre
=
ptr
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment