The following is said in the release notes of the SDK:
"After installing a widget via Application Installer in S60 emulator, ALLOC error note can be seen on exit. This issue is specific to emulator implementation and has no functional impact."
So that is a "feature" and should not have any effect, and widget should be installed properly.