[pan2] fixed mem leak in shortcut dialog



commit 55733b8956c313112c3b9485e3248eba6c7ccf97
Author: Heinrich MÃller <henmull src gnome org>
Date:   Sun Jul 1 18:27:11 2012 +0200

    fixed mem leak in shortcut dialog

 pan/gui/prefs-ui.cc |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/pan/gui/prefs-ui.cc b/pan/gui/prefs-ui.cc
index 8fbfd52..0604996 100644
--- a/pan/gui/prefs-ui.cc
+++ b/pan/gui/prefs-ui.cc
@@ -85,6 +85,7 @@ namespace pan
       static_cast<CallBackData*>(user_data)->dialog->update_hotkey(user_data);
     }
     gtk_widget_destroy(dialog);
+    delete static_cast<CallBackData*>(user_data);
   }
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]