doc/
[gpgme.git] / gpgme / decrypt.c
index 0f80549..91e6c30 100644 (file)
@@ -53,6 +53,9 @@ release_op_data (void *hook)
 
   if (opd->result.unsupported_algorithm)
     free (opd->result.unsupported_algorithm);
+
+  if (opd->result.plaintext_filename)
+    free (opd->result.plaintext_filename);
 }
 
 
@@ -238,6 +241,11 @@ _gpgme_decrypt_status_handler (void *priv, gpgme_status_code_t code,
       }
       break;
 
+    case GPGME_STATUS_PLAINTEXT:
+      err = _gpgme_parse_plaintext (args, &opd->result.plaintext_filename);
+      if (err)
+       return err;
+      
     default:
       break;
     }