On Fri, Oct 24, 2014 at 04:02:01PM +0200, Joël Krähemann wrote: > Hi Hi.
> Gtk+-2.0 leaks memory, please take a look at: http://ags.sourceforge.net > > Is Gtk+-2.0 still maintained? Yes it is. The latest point release happened just two weeks ago. > Or is migrating to Gtk+-3.0 the only choice? Or may someone could > explain me what's wrong about: > > AgsAudioLoop *audio_loop; > AgsGuiThread *gui_thread; > > auto void ags_gui_thread_do_gtk_iteration(); > > void ags_gui_thread_do_gtk_iteration(){ > if(!g_main_context_acquire(main_context)){ > gboolean got_ownership = FALSE; > > while(!got_ownership){ > got_ownership = g_main_context_wait(main_context, > &(gui_thread->cond), > &(gui_thread->mutex)); > } > } > > /* */ > gdk_threads_enter(); > gdk_threads_leave(); > > g_main_context_iteration(main_context, FALSE); > g_main_context_release(main_context); > } > > gui_thread = AGS_GUI_THREAD(thread); > > /* */ > main_context = g_main_context_default(); > > ags_gui_thread_do_gtk_iteration(); Can you explain what the problem is and why you think that GTK+ leaks memory? It's not apparent from the code snippet alone what you're having problem with. Marcus _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list