]> granicus.if.org Git - transmission/commit
Send dummy events each second to prevent excessive memory use (inspired by xnyhps)
authorMike Gelfand <mikedld@mikedld.com>
Sat, 18 Apr 2015 21:45:37 +0000 (21:45 +0000)
committerMike Gelfand <mikedld@mikedld.com>
Sat, 18 Apr 2015 21:45:37 +0000 (21:45 +0000)
commitf1010159a6a15b17c8caedcfcb30ae0388758c0e
treea126afecf7a75e41c4e469a779e9756fbcd99b1a
parentadde87a99e94c38c77ccef3f7a94c6e7dd71cae4
Send dummy events each second to prevent excessive memory use (inspired by xnyhps)

I'm not that good in Mac programming it seems as I can't figure out why
doesn't the memory being allocated by frequent NSNewBitmapBackingStore
(system internal) calls being freed even if I wrap the code into
@autoreleasepool explicitly. Disabling animations does slow it down but
not stop. This commit is certainly a dirty fix but it seems to work in
my case and I hope it helps a few other people while we wait for a
proper solution.
macosx/Controller.m