From: espen Date: Wed, 17 Oct 2007 14:47:10 +0000 (+0000) Subject: Instances of TREE-ITER properly allocated as memory slices X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/clg/commitdiff_plain/d892130b90f224ac8bac0c7c9f10fa9587790bf1?ds=sidebyside Instances of TREE-ITER properly allocated as memory slices --- diff --git a/gtk/gtktree.lisp b/gtk/gtktree.lisp index bf47a0f..5a7f832 100644 --- a/gtk/gtktree.lisp +++ b/gtk/gtktree.lisp @@ -20,7 +20,7 @@ ;; TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE ;; SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -;; $Id: gtktree.lisp,v 1.30 2007-09-06 14:32:03 espen Exp $ +;; $Id: gtktree.lisp,v 1.31 2007-10-17 14:47:10 espen Exp $ (in-package "GTK") @@ -384,6 +384,11 @@ (defbinding tree-model-get-iter (model path &optional (iter (make-instance 'tree (model tree-model) (iter tree-iter :in/return) (path tree-path)) + +(defmethod allocate-foreign ((tree-iter tree-iter) &rest initargs) + (declare (ignore initargs)) + (let ((size (foreign-size (class-of tree-iter)))) + (slice-alloc size))) (defun ensure-tree-iter (model row) (etypecase row