Oops, initialize the 'elements' array correctly.
authorTilman Sauerbeck <tilman@code-monkey.de>
Fri, 18 Mar 2005 18:49:46 +0000 (18:49 +0000)
committerTilman Sauerbeck <tilman@code-monkey.de>
Fri, 18 Mar 2005 18:49:46 +0000 (18:49 +0000)
src/esmart_container/rb_esmart_container.c

index 3269c37091bbc8105b5013027a3feca5af5d3211..34c8e260794a15d9d6d8b717cfe58fc7365df8ab 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: rb_esmart_container.c 286 2005-03-15 18:05:42Z tilman $
+ * $Id: rb_esmart_container.c 297 2005-03-18 18:49:46Z tilman $
  *
  * Copyright (C) 2004 Tilman Sauerbeck (tilman at code-monkey de)
  *
@@ -60,7 +60,7 @@ static VALUE c_new (VALUE klass, VALUE evas)
        argv[0] = evas;
        rb_obj_call_init (self, 1, argv);
 
-       rb_iv_set (self, "@elements", rb_ary_new ());
+       cont->elements = rb_ary_new ();
 
        return self;
 }