Re: [E-devel] E SVN: discomfitor trunk/e/src/bin
> --- trunk/e/src/bin/e_backlight_main.c 2011-12-24 07:44:07 UTC (rev 66492) > +++ trunk/e/src/bin/e_backlight_main.c 2011-12-24 07:44:18 UTC (rev 66493) > @@ -104,6 +104,9 @@ > return _bl_write_file(buf, curlevel); > } > eina_stringshare_del(f); > + /* Currently this will set brightness levels on ALL detected devices > + If this is not desired, add a break here > + */ you should add a big FIXME in the comment Vincent > } > > return -1; > > > -- > Write once. Port to many. > Get the SDK and tools to simplify cross-platform app development. Create > new or port existing apps to sell to consumers worldwide. Explore the > Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join > http://p.sf.net/sfu/intel-appdev > ___ > enlightenment-svn mailing list > enlightenment-...@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/enlightenment-svn -- Write once. Port to many. Get the SDK and tools to simplify cross-platform app development. Create new or port existing apps to sell to consumers worldwide. Explore the Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join http://p.sf.net/sfu/intel-appdev ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] E SVN: discomfitor trunk/e/src/bin
On Sat, 24 Dec 2011 09:21:17 +0100 Vincent Torri wrote: > > --- trunk/e/src/bin/e_backlight_main.c 2011-12-24 07:44:07 UTC (rev 66492) > > +++ trunk/e/src/bin/e_backlight_main.c 2011-12-24 07:44:18 UTC (rev 66493) > > @@ -104,6 +104,9 @@ > > return _bl_write_file(buf, curlevel); > > } > > eina_stringshare_del(f); > > + /* Currently this will set brightness levels on ALL detected > > devices > > + If this is not desired, add a break here > > + */ > > you should add a big FIXME in the comment > > Vincent > > > } > > > > return -1; > > > > perhaps, but there's a fixme in the other part of the backlight code. anyone who knows backlight internals enough to tinker with them will look in both places. -- Write once. Port to many. Get the SDK and tools to simplify cross-platform app development. Create new or port existing apps to sell to consumers worldwide. Explore the Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join http://p.sf.net/sfu/intel-appdev ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] E SVN: discomfitor trunk/e/src/bin
On Sat, Dec 24, 2011 at 8:44 AM, Enlightenment SVN wrote: > Log: > maybe prevent a leak but probably not > > > Author: discomfitor > Date: 2011-12-23 23:44:07 -0800 (Fri, 23 Dec 2011) > New Revision: 66492 > Trac: http://trac.enlightenment.org/e/changeset/66492 > > Modified: > trunk/e/src/bin/e_backlight.c > > Modified: trunk/e/src/bin/e_backlight.c > === > --- trunk/e/src/bin/e_backlight.c 2011-12-24 07:29:21 UTC (rev 66491) > +++ trunk/e/src/bin/e_backlight.c 2011-12-24 07:44:07 UTC (rev 66492) > @@ -254,7 +254,10 @@ > if (!devs) return; > } > EINA_LIST_FREE(devs, f) > - bl_sysval = f; > + { > + eina_stringshare_replace(&bl_sysval, NULL); > + bl_sysval = f; > + } This one is very strange. I don't see the rest of the code, but the normal use would have been eina_stringshare_replace(&bl_sysval, f). Your use can lead to the premature death of f. > } > > static void > > > -- > Write once. Port to many. > Get the SDK and tools to simplify cross-platform app development. Create > new or port existing apps to sell to consumers worldwide. Explore the > Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join > http://p.sf.net/sfu/intel-appdev > ___ > enlightenment-svn mailing list > enlightenment-...@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/enlightenment-svn > -- Cedric BAIL -- Write once. Port to many. Get the SDK and tools to simplify cross-platform app development. Create new or port existing apps to sell to consumers worldwide. Explore the Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join http://p.sf.net/sfu/intel-appdev ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] E SVN: discomfitor trunk/e/src/bin
On Sat, 24 Dec 2011 12:06:07 +0100 Cedric BAIL wrote: > On Sat, Dec 24, 2011 at 8:44 AM, Enlightenment SVN > wrote: > > Log: > > maybe prevent a leak but probably not > > > > > > Author: discomfitor > > Date: 2011-12-23 23:44:07 -0800 (Fri, 23 Dec 2011) > > New Revision: 66492 > > Trac: http://trac.enlightenment.org/e/changeset/66492 > > > > Modified: > > trunk/e/src/bin/e_backlight.c > > > > Modified: trunk/e/src/bin/e_backlight.c > > === > > --- trunk/e/src/bin/e_backlight.c 2011-12-24 07:29:21 UTC (rev 66491) > > +++ trunk/e/src/bin/e_backlight.c 2011-12-24 07:44:07 UTC (rev 66492) > > @@ -254,7 +254,10 @@ > > if (!devs) return; > > } > > EINA_LIST_FREE(devs, f) > > - bl_sysval = f; > > + { > > + eina_stringshare_replace(&bl_sysval, NULL); > > + bl_sysval = f; > > + } > > This one is very strange. I don't see the rest of the code, but the > normal use would have been eina_stringshare_replace(&bl_sysval, f). > Your use can lead to the premature death of f. > > > } > > > > static void > > > > > > -- > > Write once. Port to many. > > Get the SDK and tools to simplify cross-platform app development. Create > > new or port existing apps to sell to consumers worldwide. Explore the > > Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join > > http://p.sf.net/sfu/intel-appdev > > ___ > > enlightenment-svn mailing list > > enlightenment-...@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/enlightenment-svn > > > > > you'll just have to trust me when I say that it's fine -- Write once. Port to many. Get the SDK and tools to simplify cross-platform app development. Create new or port existing apps to sell to consumers worldwide. Explore the Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join http://p.sf.net/sfu/intel-appdev ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel