upload tizen2.0 source
[framework/uifw/xorg/lib/libx11.git] / src / RdBitF.c
index 07967ae..ab7d800 100644 (file)
@@ -216,6 +216,11 @@ XReadBitmapFileData (
                *ptr=value;
            }
        }
+
+       /* If we got to this point, we read a full bitmap file. Break so we don't
+        * start reading another one from the same file and leak the memory
+        * allocated for the previous one. */
+       break;
     }                                  /* end while */
 
     fclose(fstream);