Fixed mem leak
Version 1.3.1
This commit is contained in:
parent
b079f2f20b
commit
523cdc315b
|
@ -141,7 +141,7 @@ static void add_columns (GtkTreeView *treeview) {
|
||||||
static void about_btn_clicked(GtkButton *button, gpointer user_data) {
|
static void about_btn_clicked(GtkButton *button, gpointer user_data) {
|
||||||
GtkWidget *dialog;
|
GtkWidget *dialog;
|
||||||
const gchar *website = "https://github.com/ocerman/zenmonitor";
|
const gchar *website = "https://github.com/ocerman/zenmonitor";
|
||||||
const gchar *msg = "<b>Zen Monitor</b> 1.3\n"
|
const gchar *msg = "<b>Zen Monitor</b> 1.3.1\n"
|
||||||
"Monitoring software for AMD Zen-based CPUs\n"
|
"Monitoring software for AMD Zen-based CPUs\n"
|
||||||
"<a href=\"%s\">%s</a>\n\n"
|
"<a href=\"%s\">%s</a>\n\n"
|
||||||
"Created by: Ondrej Čerman";
|
"Created by: Ondrej Čerman";
|
||||||
|
|
|
@ -17,10 +17,15 @@ gfloat *core_freq_max;
|
||||||
|
|
||||||
static gdouble get_frequency(guint coreid) {
|
static gdouble get_frequency(guint coreid) {
|
||||||
gchar *data;
|
gchar *data;
|
||||||
|
gdouble freq;
|
||||||
|
|
||||||
if (!g_file_get_contents(frq_files[coreid], &data, NULL, NULL))
|
if (!g_file_get_contents(frq_files[coreid], &data, NULL, NULL))
|
||||||
return 0.0;
|
return 0.0;
|
||||||
|
|
||||||
return atoi(data) / 1000000.0;
|
freq = atoi(data) / 1000000.0;
|
||||||
|
g_free(data);
|
||||||
|
|
||||||
|
return freq;
|
||||||
}
|
}
|
||||||
|
|
||||||
gboolean os_init(void) {
|
gboolean os_init(void) {
|
||||||
|
|
Loading…
Reference in a new issue