X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2FRdBitF.c;h=ab7d800d3c4b2380d24f4674f457582778c74beb;hb=165509f249f634f2e37dd6370df6a22cfb6b8851;hp=07967aebe01f0af74e8331876525ab3a4b03b027;hpb=828837f9255761206ec5af41fc0388fce8af6517;p=framework%2Fuifw%2Fxorg%2Flib%2Flibx11.git diff --git a/src/RdBitF.c b/src/RdBitF.c index 07967ae..ab7d800 100644 --- a/src/RdBitF.c +++ b/src/RdBitF.c @@ -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);