0002-progress-dialog-add-missing-sanity-check.patch 762 B

123456789101112131415161718192021222324252627282930
  1. From a4343a11f961b1f08f7a92aead30d0e96cacdad3 Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Felix=20Paul=20K=C3=BChne?= <fkuehne@videolan.org>
  3. Date: Tue, 17 Apr 2012 16:41:19 +0200
  4. Subject: [PATCH 02/14] progress dialog: add missing sanity check
  5. ---
  6. src/interface/dialog.c | 6 +++++-
  7. 1 file changed, 5 insertions(+), 1 deletion(-)
  8. diff --git a/src/interface/dialog.c b/src/interface/dialog.c
  9. index 3a0a36e..a9ac2e5 100644
  10. --- a/src/interface/dialog.c
  11. +++ b/src/interface/dialog.c
  12. @@ -254,7 +254,11 @@ void dialog_ProgressDestroy (dialog_progress_bar_t *dialog)
  13. {
  14. assert (dialog);
  15. - dialog->pf_destroy (dialog->p_sys);
  16. + if (dialog->pf_destroy != NULL)
  17. + {
  18. + dialog->pf_destroy (dialog->p_sys);
  19. + }
  20. +
  21. free (dialog);
  22. }
  23. --
  24. 2.7.0