Fix a memory leak in the SearchForEntryForm. Thanks to @Mitch528!