Gtk+-2.0 leaks memory
- From: Joël Krähemann <weedlight gmail com>
- To: gtk-app-devel-list gnome org
- Subject: Gtk+-2.0 leaks memory
- Date: Fri, 24 Oct 2014 16:02:01 +0200
Hi
Gtk+-2.0 leaks memory, please take a look at: http://ags.sourceforge.net
Is Gtk+-2.0 still maintained? 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();
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]