Hi Jiri,
I want to ask, is anything wrong with this patch?
Your indenting is haphazard. Please match the indenting in the rest of the file, which in this case is no tabs, 2-space indenting. Also, curly braces go on a new line, so e.g.: + if (!size) { should be + if (!size) + { instead.
--Juan