From 7309a365642841b473d811f1a344cccde1b1e351 Mon Sep 17 00:00:00 2001 From: aki Date: Mon, 9 Jun 2008 18:58:40 +0530 Subject: [PATCH] Some more debugs --- individual_files/.phpCairoContext.c.swp | Bin 16384 -> 16384 bytes individual_files/phpCairoContext.c | 49 +++++++++++++++++++++----------- 2 files changed, 32 insertions(+), 17 deletions(-) diff --git a/individual_files/.phpCairoContext.c.swp b/individual_files/.phpCairoContext.c.swp index 96cf1160e3c14ef3d427d0f1965fbd0dc6c4f1e4..ff3c79dfea13d138e84bc1077f2125590ac675ea 100644 GIT binary patch delta 903 zcwTLg&r1|x7{{O4U9;InvpPge#CVC>h0-p17}UVF9|tjoI#t^^`4;cFpk&-R^sbiJAO7ar%{q;FnqNHtNkls=~g(@5w~5h;kPaU9=4T#)_? zK7%-(7XA}{1M#=?A2NSBBm6u3A!2KT@Ne+jh%cpoh2KX!zfJf`90&CV)F?K-AmJ9` zjPzw$pmn?O&+z2IPoyu&{2o>KC+YLjKf*f@FJ*-ToiuJsE<^*nq65Jc?hW89 z`DMxW;!dLXU;(@X55PSz3cA1^up6v4BL}<%FTiu~4AejsTmZ*FC+Gkg_|Qc33e15s z;I&5mRMd#}f(%Fj1rUgLpg5QZPr)QO3jW}+bHD@Rzy*U@F~sR?q+~)hS~0aupk8B@ za>*SUWi~HOSYwx&?lF#qNj37h#T{GUn$l}Ip4;nIIJ?UKo>bTsqn>GxS-xLl74B8_ zg3a=H6{&34W6Th#d6QIZskY^qo?9w2pL=fAutmK?-ExtnIm27GYeeet!D4atM9;yN zddCsVACYBdr@HqAxT)i_H$4z<5w3UX#=l2-vDh&5gzJ?5J7<}@o>4z7$Z?1YZ8W*w PE+=ax17g1Q&L*t^V#fRq delta 461 zcwQ~g%_{_P9LMqRn0>(PE-R-^I4Om=Acwt3) zT=*ZhT$h|2IAN`2Jsie+`u(QfedaYy{id;P!?umsZ1?2IXlq|rk8stC47Vo|7uks9 zlUK1@GnigZb@qoRoT51u%53mTvP#5Y|6JGIWgoPEwUZtk72sMDNTu=ob@ewz3AsZQjM3Uo~U)w!mWEXVN8Th91E$oCID8FQTg diff --git a/individual_files/phpCairoContext.c b/individual_files/phpCairoContext.c index 22cb70f..1c62cba 100644 --- a/individual_files/phpCairoContext.c +++ b/individual_files/phpCairoContext.c @@ -1052,10 +1052,10 @@ PHP_METHOD(CairoContext, glyph_extents) { zend_class_entry * _this_ce; int i; - zval * _this_zval = NULL; + zval * _this_zval = NULL, **ppzval; zval * obj = NULL; long num = -1; - cairo_glyph_t *glyphs=NULL , *glyph; + cairo_glyph_t **glyphs=NULL , **glyph; HashTable *obj_hash = NULL; cairo_text_extents_t extents; @@ -1063,13 +1063,12 @@ PHP_METHOD(CairoContext, glyph_extents) return; } obj_hash = HASH_OF(obj); - glyphs = emalloc(num*sizeof(cairo_glyph_t)); + for(i=0 , glyph=glyphs; icontext, das, num_dashes, offset); phpCAIRO_CONTEXT_ERROR(curr->context); + efree(das); } @@ -2328,7 +2334,7 @@ PHP_METHOD(CairoContext, show_glyphs) { zend_class_entry * _this_ce; int i; - zval * _this_zval = NULL; + zval * _this_zval = NULL, **ppzval; zval * obj = NULL; long num_glyphs = 0; HashTable *obj_hash = NULL; @@ -2345,11 +2351,20 @@ PHP_METHOD(CairoContext, show_glyphs) obj_hash = HASH_OF(obj); glyphs = emalloc(num_glyphs*sizeof(cairo_glyph_t)); - for(i=0 , glyph=glyphs; icontext, glyphs, num_glyphs); phpCAIRO_CONTEXT_ERROR(curr->context); -- 2.11.4.GIT