Closed nsmryan closed 2 years ago
Good catch, thanks! I think the comment and code should be removed. wfc_destroy
shouldn't destroy image that it didn't create and which is passed to it.
Btw, thank you for this library! I have been looking for a simple, C implementation of WFC!
You're welcome, and thanks for using!
It looks like the comment about wfc_destroy: https://github.com/krychu/wfc/blob/8367df511191a30ad5aebcac132dd88c6d33306e/wfc.h#L149
is incorrect given: https://github.com/krychu/wfc/blob/8367df511191a30ad5aebcac132dd88c6d33306e/wfc.h#L1143
I don't know why this line was commented out, so I won't suggest a solution either way, but it seems like the comment or the code should be changed.
Btw, thank you for this library! I have been looking for a simple, C implementation of WFC!