php.net |  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: markskilbeck@php.net Assigned:
Status: Not a bug Package: cairo (PECL)
PHP Version: 5.3.2 OS: Ubuntu
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: markskilbeck@php.net
New email:
PHP Version: OS:

 

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

Reproduce code:
---------------
<?php

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

$x = $s->getMatrix();

Expected result:
----------------
No errors.

Actual result:
--------------
[Thu Jul  8 15:49:14 2010]  Script:  '/usr/src/php-
cairo/clonetest.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 ===

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-08-26 13:27 UTC] markskilbeck@php.net
Cannot seem to reproduce this now.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 13:01:31 2024 UTC