|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59300 CairoSurface::getMatrix() memory leak
Submitted: 2010-07-08 10:52 UTC Modified: 2010-08-26 13:27 UTC
From: Assigned:
Status: Not a bug Package: cairo (PECL)
PHP Version: 5.3.2 OS: Ubuntu
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
New email:
PHP Version: OS:


 [2010-07-08 10:52 UTC]
Calling CairoPattern::getMatrix() on a CairoPattern results 
in a memory leak.

Reproduce code:

$m = new CairoMatrix();
$s = new CairoSolidPattern(1, 1, 1); 

$x = $s->getMatrix();

Expected result:
No errors.

Actual result:
[Thu Jul  8 15:49:14 2010]  Script:  '/usr/src/php-
/usr/src/php-cairo2/cairo_matrix.c(106) :  Freeing 0x0A2C4F18 
(48 bytes), script=/usr/src/php-cairo/clonetest.php
/usr/src/php_5_3_2/Zend/zend_alloc.c(2444) : Actual location 
(location was relayed)
=== Total 1 memory leaks detected ===


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-08-26 13:27 UTC]
Cannot seem to reproduce this now.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sat Dec 02 10:01:26 2023 UTC