f



XGetVisualInfo, XFree

hello group,

if i get a list of XVisualInfo-structures, have i to free the data for 
EACH struct i don't need or do i copy the one i need and free all by 
XFree(first-struct*)?

Thanks, Chris
0
Chris
10/2/2007 9:40:23 AM
comp.windows.x 1388 articles. 1 followers. Post Follow

2 Replies
412 Views

Similar Articles

[PageSpeed] 39

On 2007-10-02, Chris Forone <4one@gmx.at> wrote:
>
> if i get a list of XVisualInfo-structures, have i to free the data for 
> EACH struct i don't need or do i copy the one i need and free all by 
> XFree(first-struct*)?

One XFree suffices:

XVisualInfo *vinf = XGetVisualInfo(...);
....
XFree(vinf);

-- 
John Tsiombikas (Nuclear / Mindlapse)
http://nuclear.sdf-eu.org/
0
John
10/2/2007 1:45:48 PM
John Tsiombikas schrieb:
> On 2007-10-02, Chris Forone <4one@gmx.at> wrote:
>> if i get a list of XVisualInfo-structures, have i to free the data for 
>> EACH struct i don't need or do i copy the one i need and free all by 
>> XFree(first-struct*)?
> 
> One XFree suffices:
> 
> XVisualInfo *vinf = XGetVisualInfo(...);
> ...
> XFree(vinf);
> 
Thanks a lot! :-)
0
Chris
10/2/2007 3:30:02 PM
Reply:

Similar Artilces:

=?windows-1256?B?x+HFzMfIx8ogx+Hk4+bQzO3lIOHF48rNx+Qg?= =?windows-1256?B?x+HK3cfW4SDmx+HK38fj4SDh4dXdIMfhy8fhyyDH4cs=?= =?windows-1256?B?x+Tm7SAyMDEz?=
x+HFzMfIx8ogx+Hk4+bQzO3lIOHF48rNx+Qgx+HK3cfW4SDmx+HK38fj4SDh4dXdIMfhy8fhyyDH 4cvH5ObtIDIwMTMKCmh0dHA6Ly9tcmhvc3NhbWFsYWdteS5pbmZvLz9wPTgzOA== ...

=?windows-1256?B?x+HI0eTH48wgx+HKz9HtyOwgOiDH4crd5u3WIA==?= =?windows-1256?B?x+HFz8fR7SDm48/O4SDKzd3t0iDH4ePRxObT7eQgx9M=?= =?windows-1256?B?2OTI5uEgLSDK0d/txyDO4cfhIMfh3crRySDj5CAxMCDH4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0eTH48wgx+HKz9HtyO06ICjH4crN4e3hIA==?= =?windows-1256?B?x+Hjx+HtIObH4ePNx9PI7SDh4c3Tx8jHyiDH4c7Kxw==?= =?windows-1256?B?4+3JIObex8bjySDH4ePR39Igx+Hjx+HtKSAg38fSyOHH?= =?windows-12
x+HHys3HzyDH4drRyO0g4crk4+3JIMfh4+bH0c8gx+HI1NHtyQrmzc/JIMfhyNHH48wg5ubR1CDH 4drj4QoKx+HT4cfjINrh7d/jIObRzePJIMfh4eUg5sjR38fK5aGhoQrtytTR3SDH4cfKzcfPIMfh 2tHI7SDhyuTj7ckgx+Hj5sfRzyDH4cjU0e3JIMPkIO3N7dgg09rHz8rf4yDa4ePH8CDD5OU6CsjH 4crax+bkIOPaCuPR39IgyuTj7ckgx+Hj5sfRzyDH4djI7drtySDmx+HI1NHtySDI49rlzyDH4cjN 5ssg5sfhz9HH08fKIMfhxd3R7d7tyQogKCDMx+PaySDH4d7H5dzc3Nzc3Nzc3NzRySApCtrS4yDa 4ewgx+HI0eTH48wgx+HKz9HtyO06Csfhys3h7eEgx+Hjx+HtIObH4ePNx9PI7SAK4eHN08fIx8og x+HOysfj7ckg5t7HxuPJIMfh49Hf0iDH4ePH4e0K38fSyOHH5N/HIJYgx+Hj4+HfySDH4ePb0cjt ySDO4cfhIMfh3crRySDj5CAyMi0yNiAg08jK48jRIDIwMTPjCsjlz9...

=?windows-1256?B?x+HI0eTH48wgx+HKz9HtyO06x+Hj5cfRx8og?= =?windows-1256?B?x+HHz8fR7ckg5sfh3eTtySDh49PG5uHsIMfhys/R7Q==?= =?windows-1256?B?yCDmx+HK2Obt0SDH4cfPx9HsLd/H0sfI4cfk38cgliA=?= =?windows-1256?B
CgrKz9rm3+Mgx+HPx9Egx+Ha0cjtySDh4crk4+3JIMfhxc/H0e3JCgrhzdbm0SDH4cjR5MfjzCDH 4crP0e3I7QoKKcfh4+XH0cfKIMfhxc/H0e3JIObH4d3k7ckg4ePTxubh7SDH4crP0e3IIObH4crY 5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fK5SDm09rR5QoKaHR0cDovL25hdGlndGFzN2FiLmJsb2dzcG90 LmNvbS8yMDEzLzA1L2Jsb2ctcG9zdF83NDk3Lmh0bWw= ...

newbie question
The canned packaging I installed was something like X-windows deveoper or something like that. Whn I start the server, it comes up to the shell log in. I log in as root. How do I then start the X-Windows system? In article <APAsf.977$Nr6.510@bignews5.bellsouth.net>, NotGiven <noname@nonegiven.invalid> wrote: >The canned packaging I installed was something like X-windows deveoper or >something like that. Whn I start the server, it comes up to the shell log >in. I log in as root. How do I then start the X-Windows system? Log in as a normal user, th...

=?windows-1256?B?x+Hj5t7aIMfhzM/tzyDh5MrHxswgx+HH48rN?= =?windows-1256?B?x+THyiDH4cfS5dHtySDH4cfIys/Hxu3JIObH4cfazw==?= =?windows-1256?B?x8/tySDmx+HLx+Tm7ckgYWxhemhhci1hbHNoYXJpZi5nb3YuZWcgMjAxMw==?=
2KfZhNmF2YjZgti5IO+/ve+/vdmE2KzYr9mK2K8g2YTZhtiq2KfYptisINin2YTYp9mF2KrYrdin 2YbYp9iqINin2YTYp9iy2YfYsdmK2Kkg2KfZhNin2KjYqtiv2KfYptmK2Kkg2YjYp9mE2KfYudiv 2KfYr9mK2KkK2YjYp9mE2KvYp9mG2YjZitipIGFsYXpoYXItYWxzaGFyaWYuZ292LmVnIDIwMTMK Cmh0dHA6Ly9uYXRpZ2FhczdhYi5uZXQvd3AvP3A9OTQw ...

=?windows-1256?B?x+Hj5t7aIMfhzM/tzyDh5MrHxswgx+HH48rN?= =?windows-1256?B?x+THyiDH4cfS5dHtySDH4cfIys/Hxu3JIObH4cfazw==?= =?windows-1256?B?x8/tySDmx+HLx+Tm7ckgYWxhemhhci1hbHNoYXJpZi5nb3YuZWcgMjAxMw==?=
2KfZhNmF2YjZgti5INin2YTYrNiv2YrYryDZhNmG2Krvv73vv73YptisINin2YTYp9mF2KrYrdin 2YbYp9iqINin2YTYp9iy2YfYsdmK2Kkg2KfZhNin2KjYqtiv2KfYptmK2Kkg2YjYp9mE2KfYudiv 2KfYr9mK2KkK2YjYp9mE2KvYp9mG2YjZitipIGFsYXpoYXItYWxzaGFyaWYuZ292LmVnIDIwMTMK Cmh0dHA6Ly9uYXRpZ2FhczdhYi5uZXQvd3AvP3A9OTQw ...

=?windows-1256?B?x+HHzMfIx8ogx+Hk4+bQzO3lIOHhw9PG4eUg?= =?windows-1256?B?x+HK7CDm0c/KIMjF48rNx+Qgx+HK3cfW4SDmx+HK38c=?= =?windows-1256?B?4+Eg4eHV3SDH4cvH4csgx+HLx+Tm7Q==?=
x+HHzMfIx8ogx+Hk4+bQzO3lIOHhw9PG4eUgx+HK7CDm0c/KIMjF48rNx+Qgx+HK3cfW4SDmx+HK 38fj4SDh4dXdCsfhy8fhyyDH4cvH5ObtCgpodHRwOi8vbXJob3NzYW1hbGFnbXkuaW5mby8/cD04 NDQ= ...

=?windows-1256?B?x+HayCDh2sjJIMfhyOHtx9HP5iDH4dTl7dHlIA==?= =?windows-1256?B?x+bkIOHH7eQ=?=
x+HayCDh2sjJIMfhyOHtx9HP5iDH4dTl7dHlIMfm5CDhx+3kCgpodHRwOi8vZnV0dXJlZ2FtZXMu dWNvei5jb20v ...

=?windows-1256?B?x+HayCDh2sjJIMfhyOHtx9HP5iDH4dTl7dHlIA==?= =?windows-1256?B?x+bkIOHH7eQ=?=
x+HayCDh2sjJIMfhyOHtx9HP5iDH4dTl7dHlIMfm5CDhx+3kCgpodHRwOi8vZnV0dXJlZ2FtZXMu dWNvei5jb20v ...

=?windows-1256?B?x+HayCDh2sjJIMfhyOHtx9HP5iDH4dTl7dHlIA==?= =?windows-1256?B?x+bkIOHH7eQ=?=
x+HayCDh2sjJIMfhyOHtx9HP5iDH4dTl7dHlIMfm5CDhx+3kCgpodHRwOi8vZnV0dXJlZ2FtZXMu dWNvei5jb20v ...

Web resources about - XGetVisualInfo, XFree - comp.windows.x

Xlib Programming Manual: XGetVisualInfo
The XGetVisualInfo() function returns a list of visual structures that have attributes equal to the attributes specified by vinfo_template.If ...

Xlib Programming Manual: Determining the Appropriate Visual Type
To obtain a list of visual information structures that match a specifiedtemplate, use XGetVisualInfo() . To obtain the visual information that ...

Resources last updated: 1/30/2016 1:39:46 PM