progs/demos: Fix memory leak in projtex.c.
authorVinson Lee <vlee@vmware.com>
Tue, 17 Nov 2009 00:31:34 +0000 (16:31 -0800)
committerVinson Lee <vlee@vmware.com>
Fri, 4 Dec 2009 06:44:55 +0000 (22:44 -0800)
(cherry picked from commit ee555e3d69c8820f27e71e5ebc028a768cef7d0b)

progs/demos/projtex.c

index 99154d7bdc8b2439b865924e32f8a901c8f0b6f7..ad205c741374b11cf21e161861ebd7c4b48b791f 100644 (file)
@@ -245,6 +245,9 @@ loadImageTextures(void)
        glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
      }
      glTexParameterfv(GL_TEXTURE_2D, GL_TEXTURE_BORDER_COLOR, borderColor);
+
+     free(texData3);
+     free(texData4);
   }
 }