* patch from Micah Heyer (GtkRadiant Mailinglist)
[xonotic/netradiant.git] / contrib / gtkgensurf / gendlgs.cpp
index 8756f037af5fa14adb2454161891bd3320d4ff6b..01df80b8a686728980f1b40d915fae696084b395 100644 (file)
@@ -894,11 +894,6 @@ static gint bitmap_file_entryfocusout(GtkWidget* widget, GdkEventFocus* event, g
   strcpy (filename, gtk_entry_get_text (GTK_ENTRY(widget)));
   if(strcmp (filename,gbmp.name))
   {
-    if (gbmp.colors)
-    {
-      free(gbmp.colors);
-      gbmp.colors=NULL;
-    }
     strcpy (gbmp.name,filename);
     if (strlen(gbmp.name) )
       OpenBitmap ();