Adding Dry/Wet controls - Alex
[terminatorX.git] / src / tX_mastergui.cc
index 38959018972d811f55945ce18ac6d140cac70ddf..30bdbc2b45dfd4230a51ea5a3a444d1cb699bed5 100644 (file)
@@ -222,8 +222,10 @@ void mg_update_status()
                                gtk_label_set_text(GTK_LABEL(used_mem), buffer);
                        }
                }
+               fclose(procfs); 
+       } else {
+               gtk_label_set_text(GTK_LABEL(used_mem), "");
        }
-       fclose(procfs); 
        
        sprintf(buffer, "%i", vtt_class::vtt_amount);
        gtk_label_set_text(GTK_LABEL(no_of_vtts), buffer);