Commit 7aa9d277 authored by dscho's avatar dscho

fixed valgrind warning

parent c08bfcfd
2004-02-29 Johannes E. Schindelin <Johannes.Schindelin@gmx.de>
* fixed warning of valgrind for regiontest
2004-02-19 Karl Runge <runge@karlrunge.com> 2004-02-19 Karl Runge <runge@karlrunge.com>
* x11vnc options -nosel -noprimary -visual. * x11vnc options -nosel -noprimary -visual.
* add clipboard/selection handling. * add clipboard/selection handling.
......
...@@ -224,8 +224,9 @@ sraSpanListCount(const sraSpanList *list) { ...@@ -224,8 +224,9 @@ sraSpanListCount(const sraSpanList *list) {
void void
sraSpanMergePrevious(sraSpan *dest) { sraSpanMergePrevious(sraSpan *dest) {
sraSpan *prev = dest->_prev; sraSpan *prev = dest->_prev;
while ((prev->end == dest->start) &&
(prev->_prev) && while ((prev->_prev) &&
(prev->end == dest->start) &&
(sraSpanListEqual(prev->subspan, dest->subspan))) { (sraSpanListEqual(prev->subspan, dest->subspan))) {
/* /*
printf("merge_prev:"); printf("merge_prev:");
...@@ -244,8 +245,8 @@ sraSpanMergePrevious(sraSpan *dest) { ...@@ -244,8 +245,8 @@ sraSpanMergePrevious(sraSpan *dest) {
void void
sraSpanMergeNext(sraSpan *dest) { sraSpanMergeNext(sraSpan *dest) {
sraSpan *next = dest->_next; sraSpan *next = dest->_next;
while ((next->start == dest->end) && while ((next->_next) &&
(next->_next) && (next->start == dest->end) &&
(sraSpanListEqual(next->subspan, dest->subspan))) { (sraSpanListEqual(next->subspan, dest->subspan))) {
/* /*
printf("merge_next:"); printf("merge_next:");
...@@ -834,7 +835,7 @@ int main(int argc, char** argv) ...@@ -834,7 +835,7 @@ int main(int argc, char** argv)
rect.x2-rect.x1,rect.y2-rect.y1, rect.x2-rect.x1,rect.y2-rect.y1,
rect.x1,rect.y1); rect.x1,rect.y1);
sraRgnReleaseIterator(i); sraRgnReleaseIterator(i);
printf("\n20x10+0+0 600x30+0+10 590x10+10+40 30x150+10+50 250x150+350+50 590x100+10+200\n\n"); printf("\n20x10+0+0 600x30+0+10 590x10+10+40 30x150+10+50 250x150+350+50 590x100+10+200 \n\n");
i = sraRgnGetReverseIterator(region,1,0); i = sraRgnGetReverseIterator(region,1,0);
while(sraRgnIteratorNext(i, &rect)) while(sraRgnIteratorNext(i, &rect))
...@@ -842,7 +843,7 @@ int main(int argc, char** argv) ...@@ -842,7 +843,7 @@ int main(int argc, char** argv)
rect.x2-rect.x1,rect.y2-rect.y1, rect.x2-rect.x1,rect.y2-rect.y1,
rect.x1,rect.y1); rect.x1,rect.y1);
sraRgnReleaseIterator(i); sraRgnReleaseIterator(i);
printf("\n20x10+0+0 600x30+0+10 590x10+10+40 250x150+350+50 30x150+10+50 590x100+10+200\n\n"); printf("\n20x10+0+0 600x30+0+10 590x10+10+40 250x150+350+50 30x150+10+50 590x100+10+200 \n\n");
i = sraRgnGetReverseIterator(region,1,1); i = sraRgnGetReverseIterator(region,1,1);
while(sraRgnIteratorNext(i, &rect)) while(sraRgnIteratorNext(i, &rect))
...@@ -850,7 +851,11 @@ int main(int argc, char** argv) ...@@ -850,7 +851,11 @@ int main(int argc, char** argv)
rect.x2-rect.x1,rect.y2-rect.y1, rect.x2-rect.x1,rect.y2-rect.y1,
rect.x1,rect.y1); rect.x1,rect.y1);
sraRgnReleaseIterator(i); sraRgnReleaseIterator(i);
printf("\n590x100+10+200 250x150+350+50 30x150+10+50 590x10+10+40 600x30+0+10 20x10+0+0\n\n"); printf("\n590x100+10+200 250x150+350+50 30x150+10+50 590x10+10+40 600x30+0+10 20x10+0+0 \n\n");
sraRgnDestroy(region);
sraRgnDestroy(region1);
sraRgnDestroy(region2);
return(0); return(0);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment