-rw-r--r-- | core/applets/vmemo/vmemo.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/core/applets/vmemo/vmemo.cpp b/core/applets/vmemo/vmemo.cpp index 4c07b3a..226f058 100644 --- a/core/applets/vmemo/vmemo.cpp +++ b/core/applets/vmemo/vmemo.cpp | |||
@@ -309,9 +309,6 @@ bool VMemo::startRecording() { | |||
309 | 309 | ||
310 | if (openDSP() == -1) { | 310 | if (openDSP() == -1) { |
311 | recording = FALSE; | 311 | recording = FALSE; |
312 | msgLabel=0; | ||
313 | delete msgLabel; | ||
314 | |||
315 | return FALSE; | 312 | return FALSE; |
316 | } | 313 | } |
317 | 314 | ||
@@ -427,6 +424,10 @@ int VMemo::openDSP() { | |||
427 | } | 424 | } |
428 | 425 | ||
429 | if(dsp == -1) { | 426 | if(dsp == -1) { |
427 | msgLabel->close(); | ||
428 | msgLabel=0; | ||
429 | delete msgLabel; | ||
430 | |||
430 | perror("open(\"/dev/dsp\")"); | 431 | perror("open(\"/dev/dsp\")"); |
431 | errorMsg="open(\"/dev/dsp\")\n "+(QString)strerror(errno); | 432 | errorMsg="open(\"/dev/dsp\")\n "+(QString)strerror(errno); |
432 | QMessageBox::critical(0, "vmemo", errorMsg, "Abort"); | 433 | QMessageBox::critical(0, "vmemo", errorMsg, "Abort"); |