assert(rgb_render=new uint8_t [w*h*4]);
ADM_assert(rgb_render=new uint8_t [w*h*4]);
void GUI_PreviewInit(uint32_t w , uint32_t h){		if(rgb_render)		{			printf("\n Warning rgb render not null...\n");			free(rgb_render);		}      assert(rgb_render=new uint8_t [w*h*4]);       uw=w;       uh=h;       dialog=create_dialog1();       gtk_widget_set_usize (lookup_widget(dialog,"drawingarea1"),w,h);       // add callback for destroy 	gtk_object_set_data_full(GTK_OBJECT(dialog),			     "dialog",			     dialog,			     (GtkDestroyNotify) preview_exit_short);	// add callback for button	gtk_signal_connect(GTK_OBJECT(lookup_widget(dialog,"closebutton1")), "clicked",                      GTK_SIGNAL_FUNC(preview_exit),                   (void *) NULL);	// add callback for redraw	gtk_signal_connect(GTK_OBJECT(lookup_widget(dialog,"drawingarea1")), "expose_event",		       GTK_SIGNAL_FUNC(previewRender),		       NULL);       lock=0;       needDestroy=1;       gtk_widget_show(  dialog);}