This can be interpreted many ways, I suppose.
- The shapeshifter is giving her heart away.
- The knight is giving her heart away.
- The knight is collecting hearts for the shapeshifter.
- The shapeshifter is giving a magical golden heart away because the Knight went on a quest for her and that was the reward. A golden heart.
See? I told you it could be interpreted may ways.