fix memory leak and uninitialized local variable issues
- Memory leak from FontConfig Pattern pointer.
- Uninitialized local variable can be problem
when it checks address for free and file close.
Change-Id: I5a23fbf2fa484a70cceaab9eb6cbda5d86cb02f1
(cherry picked from commit
a48fac2edbac930a86955ad2ae0f169e22672c7f)
copy file when move font file to proper shared path
It resolve smack issue when .wgt font application is installed.
Change-Id: I3ea71a0ffbbac0eea15526ad31e22c42a5544daa
(cherry picked from commit
75f316df35401bbd15839f8e8a7846414c8fe543)
Fixed to use security_server_label_access() instead of lsetxattr().
Change-Id: I8ba5996064fd73bebd2aaff228efdf5682d1637a