Old post I know but for info I tried the first part of this fix (i.e. shutting down all running apps apart from the ones mentioned) also deleted a couple of apps (You Tube and Zedge) and then restarted phone. Problem fixed, can now access Gallery without that Not enough memory error message. Great