gimp r26727 - in branches/gimp-2-4: . app/core



Author: larsc
Date: Sat Aug 23 13:35:54 2008
New Revision: 26727
URL: http://svn.gnome.org/viewvc/gimp?rev=26727&view=rev

Log:
2008-08-23  Lars-Peter Clausen  <lars metafoo de>

	Merged from trunk:
		
	* app/core/gimpgradient.c (gimp_gradient_segment_range_delete):
	Don't dereference final_start_seg and final_end_seg if NULL.



Modified:
   branches/gimp-2-4/ChangeLog
   branches/gimp-2-4/app/core/gimpgradient.c

Modified: branches/gimp-2-4/app/core/gimpgradient.c
==============================================================================
--- branches/gimp-2-4/app/core/gimpgradient.c	(original)
+++ branches/gimp-2-4/app/core/gimpgradient.c	Sat Aug 23 13:35:54 2008
@@ -1682,8 +1682,10 @@
   return;
 
  premature_return:
-  *final_start_seg = start_seg;
-  *final_end_seg   = end_seg;
+  if (final_start_seg)
+    *final_start_seg = start_seg;
+  if (final_end_seg)
+    *final_end_seg = end_seg;
 }
 
 void



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]