1
Fork 0

added in disposing of objects for memory management

This commit is contained in:
Jake Howard 2014-11-11 21:37:56 +00:00
parent 945879d9cf
commit b4912017ed

View file

@ -7,7 +7,7 @@ using System.Windows.Forms;
namespace Saviour_Backup_System
{
class notificationIcon
class notificationIcon : IDisposable
{
internal NotifyIcon notifyIcon = new NotifyIcon() ;
internal ContextMenu contextMenu = new ContextMenu();
@ -35,5 +35,10 @@ namespace Saviour_Backup_System
internal void displayStillRunning() {
}
public void Dispose()//deconstructor - for memory management
{
notifyIcon.Dispose();
contextMenu.Dispose();
}
}
}