CocoaPlugin: add missing auto release pools
authorRichard Moe Gustavsen <richard.gustavsen@nokia.com>
Thu, 6 Sep 2012 10:20:34 +0000 (12:20 +0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 12 Sep 2012 08:14:10 +0000 (10:14 +0200)
commit287255c03ae501b2ce02bc835600489bc2c0ee2e
treef588aa31d6485379e1331234b2afa900a3c0ed37
parent98e11700864e5a5b1566fd1736aae85551f2f00f
CocoaPlugin: add missing auto release pools

Add auto release pools to the entry functions of the plugin
that leads to mem leaks. By adding them as early as possible
in the callstack, we avoid creating to many pools

Change-Id: I715e06bd8d3280c6877340fc724eb1afbf804ae1
Reviewed-by: Gabriel de Dietrich <gabriel.dietrich-de@nokia.com>
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@nokia.com>
src/plugins/platforms/cocoa/qcocoamenu.mm
src/plugins/platforms/cocoa/qcocoamenubar.mm