avalanche123/Imagine — pull request #349 by ptrofimov (2014-08-01 11:49:57+00:00)
Title: Fix gmagick memory leak

We need to unset gmagick instance to free memory. And unset layers instance because it contains reference to gmagick too.