Re: cvs: php-gtk /generator gtk.overrides

From: Date: Wed, 14 Mar 2001 00:37:27 +0000
Subject: Re: cvs: php-gtk /generator gtk.overrides
References: 1  Groups: php.gtk 
Request: Send a blank email to php-gtk+get-824@lists.php.net to get a copy of this message
At 12:18 AM 3/14/01 +0000, Frank M. Kromann wrote:
%% +override gtk_clist_get_text +PHP_FUNCTION(wrap_gtk_clist_get_text) +{
+       gint row, column;
+       gchar *text;
+
+       if (!php_gtk_parse_args(ZEND_NUM_ARGS(), "ii", &row, &column))
+               return;
+
+       if (gtk_clist_get_text(GTK_CLIST(PHP_GTK_GET(this_ptr)), row, column, &text)) {
+               RETURN_STRING(text, 1);
+               efree(text);
You are not supposed to free the text variable here.. The pointer is simply set to the location of text in the GtkCList structure, it's not allocated. -Andrei

« previous php.gtk (#824) next »