diff dwt/widgets/TableItem.d @ 123:93492b9cae31

Fix: two missed g_malloc
author Frank Benoit <benoit@tionex.de>
date Sun, 20 Jan 2008 22:21:53 +0100
parents 0f12f6bb9739
children f2e04420fd6c
line wrap: on
line diff
--- a/dwt/widgets/TableItem.d	Sun Jan 20 22:07:27 2008 +0100
+++ b/dwt/widgets/TableItem.d	Sun Jan 20 22:21:53 2008 +0100
@@ -1,4 +1,4 @@
-/*******************************************************************************
+/*******************************************************************************
  * Copyright (c) 2000, 2007 IBM Corporation and others.
  * All rights reserved. This program and the accompanying materials
  * are made available under the terms of the Eclipse Public License v1.0
@@ -124,8 +124,8 @@
     if (create) {
         parent.createItem (this, index);
     } else {
-        GtkTreeIter handle;
-        OS.gtk_tree_model_iter_nth_child (parent.modelHandle, &handle, null, index);
+        handle = cast(GtkWidget*)OS.g_malloc (GtkTreeIter.sizeof);
+        OS.gtk_tree_model_iter_nth_child (parent.modelHandle, handle, null, index);
     }
 }