Solved a double free.

This commit is contained in:
barrett 2012-09-28 20:55:40 +00:00
parent 5df2084053
commit 133d3be911
2 changed files with 2 additions and 1 deletions

View File

@ -24,7 +24,7 @@ SearchBarTextControl::SearchBarTextControl(BMessage* message)
rgb_color color = tint_color(ViewColor(), B_DARKEN_3_TINT);
TextView()->SetFontAndColor(NULL, B_FONT_ALL, &color);
TextView()->MakeSelectable(false);
SetModificationMessage(message);
SetModificationMessage(new BMessage(*message));
}

View File

@ -10,6 +10,7 @@
class SearchBarTextControl : public BTextControl {
public:
SearchBarTextControl(BMessage* message);
virtual void KeyDown(const char* bytes, int32 numBytes);
};