Solved a double free.
This commit is contained in:
parent
5df2084053
commit
133d3be911
|
@ -24,7 +24,7 @@ SearchBarTextControl::SearchBarTextControl(BMessage* message)
|
||||||
rgb_color color = tint_color(ViewColor(), B_DARKEN_3_TINT);
|
rgb_color color = tint_color(ViewColor(), B_DARKEN_3_TINT);
|
||||||
TextView()->SetFontAndColor(NULL, B_FONT_ALL, &color);
|
TextView()->SetFontAndColor(NULL, B_FONT_ALL, &color);
|
||||||
TextView()->MakeSelectable(false);
|
TextView()->MakeSelectable(false);
|
||||||
SetModificationMessage(message);
|
SetModificationMessage(new BMessage(*message));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
class SearchBarTextControl : public BTextControl {
|
class SearchBarTextControl : public BTextControl {
|
||||||
public:
|
public:
|
||||||
SearchBarTextControl(BMessage* message);
|
SearchBarTextControl(BMessage* message);
|
||||||
|
|
||||||
virtual void KeyDown(const char* bytes, int32 numBytes);
|
virtual void KeyDown(const char* bytes, int32 numBytes);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Ŝarĝante…
Reference in New Issue