changeset 35797:6874a4b07594

Remove unnecessary, conditional free() call. The condition is pointless and it's already freed in uiMainDone() which has to be called prior to calling uiMainInit() again.
author ib
date Fri, 25 Jan 2013 23:59:11 +0000
parents 497a1c45a597
children 717a5f7995d6
files gui/ui/main.c
diffstat 1 files changed, 0 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/gui/ui/main.c	Fri Jan 25 23:47:34 2013 +0000
+++ b/gui/ui/main.c	Fri Jan 25 23:59:11 2013 +0000
@@ -340,8 +340,6 @@
 
 void uiMainInit (void)
 {
-  if (mainDrawBuffer) free(mainDrawBuffer);
-
   mainDrawBuffer = malloc(guiApp.main.Bitmap.ImageSize);
 
   if (!mainDrawBuffer)