Merge "Fix all fd leaks in authoring engine" into gingerbread