Skip to content
This repository was archived by the owner on Feb 27, 2023. It is now read-only.

Commit

Permalink
Make skeltrack_joint_list_free NULL-safe
Browse files Browse the repository at this point in the history
  • Loading branch information
joaquimrocha committed Jun 18, 2012
1 parent 36f8819 commit 2c887e0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions skeltrack/skeltrack-joint.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,10 @@ void
skeltrack_joint_list_free (SkeltrackJointList list)
{
gint i;

if (list == NULL)
return;

for (i = 0; i < SKELTRACK_JOINT_MAX_JOINTS; i++)
{
g_slice_free (SkeltrackJoint, list[i]);
Expand Down

0 comments on commit 2c887e0

Please sign in to comment.