frame-xchg: Actually free duplicate watches

Fix a potential leak when we need to drop an existing watch because it's
being replaced with a new one.
This commit is contained in:
Andrew Zaborowski 2020-03-18 15:45:23 +01:00 committed by Denis Kenzior
parent 9ff1c4da3a
commit a18c75d375
1 changed files with 1 additions and 0 deletions

View File

@ -522,6 +522,7 @@ static bool frame_watch_check_duplicate(void *data, void *user_data)
}
/* Drop the existing watch as a duplicate of the new one */
frame_watch_free(&watch->super);
return true;
}