Package: gtick
Version: 0.3.6-1
Severity: normal
Tags: patch
I think there's a race condition when setting the tempo name label:
frequency could be freed in a different thread prior to the call to
get_tempo_name.
--- gtick-0.3.6.orig/src/metro.c
+++ gtick-0.3.6/src/metro.c
@@ -153,11 +153,12 @@
*frequency = GTK_ADJUSTMENT(metro->speed_adjustment)->value / 60.0;
if (debug)
g_print ("set_speed_cb: rate=%f bpm\n", *frequency * 60.0);
+
+ gtk_label_set_text(GTK_LABEL(metro->tempo_name), get_tempo_name(*frequency *
60.0));
+
comm_client_query(metro->inter_thread_comm,
MESSAGE_TYPE_SET_FREQUENCY,
frequency);
-
- gtk_label_set_text(GTK_LABEL(metro->tempo_name), get_tempo_name(*frequency *
60.0));
}
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.15
Locale: LANG=C, LC_CTYPE=C
Versions of packages gtick depends on:
ii libatk1.0-0 1.10.1-2 The ATK accessibility toolkit
ii libc6 2.3.5-7 GNU C Library: Shared libraries an
ii libglib2.0-0 2.8.6-1 The GLib library of C routines
ii libgtk2.0-0 2.8.11-1 The GTK+ graphical user interface
ii libpango1.0-0 1.10.3-1 Layout and rendering of internatio
ii libsndfile1 1.0.10-1 Library for reading/writing audio
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]