Skip to content
Snippets Groups Projects
Commit 0c19e44a authored by Robin Appelman's avatar Robin Appelman
Browse files

some more memory cleanup in OC_Image

parent 60a939df
No related branches found
No related tags found
No related merge requests found
......@@ -526,6 +526,7 @@ class OC_Image {
imagedestroy($process);
return false;
}
imagedestroy($this->resource);
$this->resource = $process;
return true;
}
......@@ -558,7 +559,14 @@ class OC_Image {
imagedestroy($process);
return false;
}
imagedestroy($this->resource);
$this->resource = $process;
return true;
}
public function __destruct(){
if(is_resource($this->resource)){
imagedestroy($this->resource);
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment