diff --git a/WINGs/wtext.c b/WINGs/wtext.c index 4e0f916e..23dba1cb 100644 --- a/WINGs/wtext.c +++ b/WINGs/wtext.c @@ -3662,26 +3662,23 @@ WMDestroyTextBlock(WMText *tPtr, void *vtb) * need to find a safer way. till then... this stays commented out */ /* 5 months later... destroy it 10 seconds after now which should * be enough time for the widget's action to be completed... :-) */ - // This is a bad assumption. Just destroy the widget here. + /* This is a bad assumption. Just destroy the widget here. // if the caller needs it, it can protect it with W_RetainView() - //WMAddTimerHandler(10000, destroyWidget, (void *)tb->d.widget); + //WMAddTimerHandler(10000, destroyWidget, (void *)tb->d.widget);*/ WMDestroyWidget(tb->d.widget); - //tb->d.widget = NULL; } else { WMReleasePixmap(tb->d.pixmap); - //tb->d.pixmap = NULL; } } else { WMReleaseFont(tb->d.font); } WMReleaseColor(tb->color); - // isn't this going to memleak if nsections==0? if (tb->sections && tb->nsections > 0) + /* isn't this going to memleak if nsections==0? if (tb->sections && tb->nsections > 0) */ if (tb->sections) wfree(tb->sections); wfree(tb->text); wfree(tb); - //tb = NULL; } diff --git a/util/wdread.c b/util/wdread.c index d0e84558..bf64a686 100644 --- a/util/wdread.c +++ b/util/wdread.c @@ -120,9 +120,9 @@ int main(int argc, char **argv) strcat(path, argv[1]); if ((dict = PLGetProplistWithPath(path)) == NULL) - return 1; // bad domain + return 1; /* bad domain */ if ((value = PLGetDictionaryEntry(dict, key)) == NULL) - return 2; // bad key + return 2; /* bad key */ printf("%s\n", PLGetString(value)); return 0;