|  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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
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-2024 The PHP Group
All rights reserved.
Last updated: Sat Mar 02 14:01:34 2024 UTC