Mercurial > dwindows
comparison dwtest.c @ 327:3204b978e077
Removed strdup() since new container code on OS/2 no longer requires it.
Fixes memroy leak in dwtest.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Tue, 08 Apr 2003 09:36:02 +0000 |
parents | c13312a6b8dc |
children | e00aff2b899e |
comparison
equal
deleted
inserted
replaced
326:1c961a4d0f43 | 327:3204b978e077 |
---|---|
569 { | 569 { |
570 size = z+100; | 570 size = z+100; |
571 sprintf(buffer, "Filename %d",z+1); | 571 sprintf(buffer, "Filename %d",z+1); |
572 if (z == 0 ) thisicon = foldericon; | 572 if (z == 0 ) thisicon = foldericon; |
573 else thisicon = fileicon; | 573 else thisicon = fileicon; |
574 dw_filesystem_set_file(container, containerinfo, z, strdup(buffer), thisicon); | 574 dw_filesystem_set_file(container, containerinfo, z, buffer, thisicon); |
575 dw_filesystem_set_item(container, containerinfo, 0, z, &size); | 575 dw_filesystem_set_item(container, containerinfo, 0, z, &size); |
576 | 576 |
577 time.seconds = z+10; | 577 time.seconds = z+10; |
578 time.minutes = z+10; | 578 time.minutes = z+10; |
579 time.hours = z+10; | 579 time.hours = z+10; |