Chromium Code Reviews
DescriptionGTK: fix link button double free.
If set_normal_color was called while native_markup == normal_markup, then the string could be double freed. To fix this problem and prevent similar future mistakes, I made native_markup stdup normal_markup instead of just copying the pointer (the optimization wasn't worth the trickiness). Also, I cleaned up destruction logic.
BUG=27855
TEST=tried every flavor of chrome link button:
- classic theme
- non classic theme
- gtk theme
- gtk theme system theme that has non-default link text color property
Patch Set 1 #
Total comments: 3
Patch Set 2 : g_ everything #Patch Set 3 : g_strdup_printf #Messages
Total messages: 4 (0 generated)
|